问:
Sqoop import with Hcatalog failled:java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
I am trying to import a table from mysql to hive and i getting this errors.

```2023-01-09 07:05:51,198 INFO mapreduce.Job: Running job: job_1673201919048_0006
2023-01-09 07:06:30,327 INFO mapreduce.Job: Job job_1673201919048_0006 running in uber mode : false
2023-01-09 07:06:30,335 INFO mapreduce.Job:  map 0% reduce 0%
2023-01-09 07:06:31,196 INFO metastore.HMSHandler: Opening raw store with implementation class: org.apache.hadoop.hive.metastore.ObjectStore
2023-01-09 07:06:31,198 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@2ba31591, with PersistenceManager: null will be shutdown
2023-01-09 07:06:31,199 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@2ba31591, with PersistenceManager: org.datanucleus.api.jdo.JDOPersistenceManager@2f9c843d created in the thread with id: 24
2023-01-09 07:06:31,280 INFO metastore.HMSHandler: Created RawStore: org.apache.hadoop.hive.metastore.ObjectStore@2ba31591
2023-01-09 07:07:13,181 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000000_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:13,301 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000009_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:13,311 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000003_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:13,343 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000006_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:21,192 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000005_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:21,211 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000002_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:21,218 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000008_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:27,629 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000001_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:27,644 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000007_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:27,683 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000004_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:31,363 INFO metastore.HMSHandler: Opening raw store with implementation class: org.apache.hadoop.hive.metastore.ObjectStore
2023-01-09 07:07:31,462 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@60ea2bb0, with PersistenceManager: null will be shutdown
2023-01-09 07:07:31,747 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@60ea2bb0, with PersistenceManager: org.datanucleus.api.jdo.JDOPersistenceManager@64d5b375 created in the thread with id: 27
2023-01-09 07:07:33,769 INFO metastore.HMSHandler: Created RawStore: org.apache.hadoop.hive.metastore.ObjectStore@60ea2bb0
2023-01-09 07:07:52,625 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000000_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:52,655 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000003_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:52,681 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000006_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:57,070 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000008_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:57,085 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000005_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:02,611 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000004_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:16,499 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000007_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:16,512 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000001_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:16,522 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000009_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:16,532 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000002_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:21,870 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000003_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:26,172 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000008_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:26,180 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000000_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:31,340 INFO metastore.HMSHandler: Opening raw store with implementation class: org.apache.hadoop.hive.metastore.ObjectStore
2023-01-09 07:08:31,341 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@1f6b9cfd, with PersistenceManager: null will be shutdown
2023-01-09 07:08:31,341 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@1f6b9cfd, with PersistenceManager: org.datanucleus.api.jdo.JDOPersistenceManager@1b540bc8 created in the thread with id: 21
2023-01-09 07:08:31,666 INFO metastore.HMSHandler: Created RawStore: org.apache.hadoop.hive.metastore.ObjectStore@1f6b9cfd
2023-01-09 07:08:46,826 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000002_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:49,050 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000001_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:51,248 INFO mapreduce.Job:  map 20% reduce 0%
2023-01-09 07:08:51,609 INFO HiveMetaStore.audit: ugi=hadoop    ip=unknown-ip-addr    cmd=Done cleaning up thread local RawStore
2023-01-09 07:08:51,612 INFO metastore.HiveMetaStoreClient: Closed a connection to metastore, current connections: -1
2023-01-09 07:08:52,296 INFO mapreduce.Job:  map 100% reduce 0%
2023-01-09 07:09:11,748 INFO mapreduce.Job: Job job_1673201919048_0006 failed with state FAILED due to: Task failed task_1673201919048_0006_m_000003
Job failed as tasks failed. failedMaps:1 failedReduces:0 killedMaps:0 killedReduces: 0

2023-01-09 07:09:12,907 INFO mapreduce.Job: Counters: 12
    Job Counters
        Failed map tasks=26
        Killed map tasks=9
        Launched map tasks=34
        Other local map tasks=34
        Total time spent by all maps in occupied slots (ms)=1313721
        Total time spent by all reduces in occupied slots (ms)=0
        Total time spent by all map tasks (ms)=1313721
        Total vcore-milliseconds taken by all map tasks=1313721
        Total megabyte-milliseconds taken by all map tasks=1345250304
    Map-Reduce Framework
        CPU time spent (ms)=0
        Physical memory (bytes) snapshot=0
        Virtual memory (bytes) snapshot=0
2023-01-09 07:09:13,020 WARN mapreduce.Counters: Group FileSystemCounters is deprecated. Use org.apache.hadoop.mapreduce.FileSystemCounter instead
2023-01-09 07:09:13,047 INFO mapreduce.ImportJobBase: Transferred 0 bytes in 262.2367 seconds (0 bytes/sec)
2023-01-09 07:09:13,056 INFO mapreduce.ImportJobBase: Retrieved 0 records.
2023-01-09 07:09:13,061 ERROR tool.ImportTool: Import failed: Import job failed!

```

this the command:
sqoop import -connect jdbc:mysql://master:3306/*** --username **** --password **** --query "select id,referrer,from_url,landing_page_url,url_title,platform_description,other_params,history from web_chat_text_ems_2019_07 where 1=1 and $CONDITIONS" --hcatalog-database itcast_ods --hcatalog-table web_chat_text_ems_ods -m 10 --split-by id

Thanks!

why have the errors and how to solve it.

Body:
I am trying to import a table from mysql to hive and i getting this errors.

2023-01-09 07:05:51,198 INFO mapreduce.Job: Running job: job_1673201919048_0006
2023-01-09 07:06:30,327 INFO mapreduce.Job: Job job_1673201919048_0006 running in uber mode : false
2023-01-09 07:06:30,335 INFO mapreduce.Job:  map 0% reduce 0%
2023-01-09 07:06:31,196 INFO metastore.HMSHandler: Opening raw store with implementation class: org.apache.hadoop.hive.metastore.ObjectStore
2023-01-09 07:06:31,198 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@2ba31591, with PersistenceManager: null will be shutdown
2023-01-09 07:06:31,199 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@2ba31591, with PersistenceManager: org.datanucleus.api.jdo.JDOPersistenceManager@2f9c843d created in the thread with id: 24
2023-01-09 07:06:31,280 INFO metastore.HMSHandler: Created RawStore: org.apache.hadoop.hive.metastore.ObjectStore@2ba31591
2023-01-09 07:07:13,181 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000000_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:13,301 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000009_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:13,311 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000003_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:13,343 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000006_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:21,192 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000005_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:21,211 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000002_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:21,218 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000008_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:27,629 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000001_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:27,644 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000007_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:27,683 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000004_0, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:31,363 INFO metastore.HMSHandler: Opening raw store with implementation class: org.apache.hadoop.hive.metastore.ObjectStore
2023-01-09 07:07:31,462 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@60ea2bb0, with PersistenceManager: null will be shutdown
2023-01-09 07:07:31,747 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@60ea2bb0, with PersistenceManager: org.datanucleus.api.jdo.JDOPersistenceManager@64d5b375 created in the thread with id: 27
2023-01-09 07:07:33,769 INFO metastore.HMSHandler: Created RawStore: org.apache.hadoop.hive.metastore.ObjectStore@60ea2bb0
2023-01-09 07:07:52,625 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000000_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:52,655 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000003_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:52,681 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000006_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:57,070 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000008_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:07:57,085 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000005_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:02,611 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000004_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:16,499 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000007_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:16,512 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000001_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:16,522 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000009_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:16,532 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000002_1, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:21,870 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000003_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:26,172 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000008_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:26,180 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000000_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:31,340 INFO metastore.HMSHandler: Opening raw store with implementation class: org.apache.hadoop.hive.metastore.ObjectStore
2023-01-09 07:08:31,341 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@1f6b9cfd, with PersistenceManager: null will be shutdown
2023-01-09 07:08:31,341 INFO metastore.ObjectStore: RawStore: org.apache.hadoop.hive.metastore.ObjectStore@1f6b9cfd, with PersistenceManager: org.datanucleus.api.jdo.JDOPersistenceManager@1b540bc8 created in the thread with id: 21
2023-01-09 07:08:31,666 INFO metastore.HMSHandler: Created RawStore: org.apache.hadoop.hive.metastore.ObjectStore@1f6b9cfd
2023-01-09 07:08:46,826 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000002_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:49,050 INFO mapreduce.Job: Task Id : attempt_1673201919048_0006_m_000001_2, Status : FAILED
Error: java.lang.ClassCastException: java.util.LinkedList cannot be cast to org.apache.hive.hcatalog.mapreduce.InputJobInfo
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportHelper.<init>(SqoopHCatImportHelper.java:88)
    at org.apache.sqoop.mapreduce.hcat.SqoopHCatImportMapper.setup(SqoopHCatImportMapper.java:45)
    at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:800)
    at org.apache.hadoop.mapred.MapTask.run(MapTask.java:348)
    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:172)

2023-01-09 07:08:51,248 INFO mapreduce.Job:  map 20% reduce 0%
2023-01-09 07:08:51,609 INFO HiveMetaStore.audit: ugi=hadoop    ip=unknown-ip-addr    cmd=Done cleaning up thread local RawStore
2023-01-09 07:08:51,612 INFO metastore.HiveMetaStoreClient: Closed a connection to metastore, current connections: -1
2023-01-09 07:08:52,296 INFO mapreduce.Job:  map 100% reduce 0%
2023-01-09 07:09:11,748 INFO mapreduce.Job: Job job_1673201919048_0006 failed with state FAILED due to: Task failed task_1673201919048_0006_m_000003
Job failed as tasks failed. failedMaps:1 failedReduces:0 killedMaps:0 killedReduces: 0

2023-01-09 07:09:12,907 INFO mapreduce.Job: Counters: 12
    Job Counters
        Failed map tasks=26
        Killed map tasks=9
        Launched map tasks=34
        Other local map tasks=34
        Total time spent by all maps in occupied slots (ms)=1313721
        Total time spent by all reduces in occupied slots (ms)=0
        Total time spent by all map tasks (ms)=1313721
        Total vcore-milliseconds taken by all map tasks=1313721
        Total megabyte-milliseconds taken by all map tasks=1345250304
    Map-Reduce Framework
        CPU time spent (ms)=0
        Physical memory (bytes) snapshot=0
        Virtual memory (bytes) snapshot=0
2023-01-09 07:09:13,020 WARN mapreduce.Counters: Group FileSystemCounters is deprecated. Use org.apache.hadoop.mapreduce.FileSystemCounter instead
2023-01-09 07:09:13,047 INFO mapreduce.ImportJobBase: Transferred 0 bytes in 262.2367 seconds (0 bytes/sec)
2023-01-09 07:09:13,056 INFO mapreduce.ImportJobBase: Retrieved 0 records.
2023-01-09 07:09:13,061 ERROR tool.ImportTool: Import failed: Import job failed!

this the command:
sqoop import -connect jdbc:mysql://master:3306/*** --username **** --password **** --query "select id,referrer,from_url,landing_page_url,url_title,platform_description,other_params,history from web_chat_text_ems_2019_07 where 1=1 and $CONDITIONS" --hcatalog-database itcast_ods --hcatalog-table web_chat_text_ems_ods -m 10 --split-by id

Thanks!

why have the errors and how to solve it.


来源: stackexchange

问:
Create form for intermediate model showing all objects from one model
I’m working on a project to track Apps that are assigned to Employees. These assignments are stored in an intermediate model called EmployeeApps that contain an extra field called status (model.ChoiceField).

I need to build a form that displays a list of all Apps and a checkbox to request that app. This would save back to the EmployeeApps model any requested apps.

I have the various models created and working fine but cannot figure out how to create the form itself.

An identical question was asked a few years ago but the form logic wasn’t shared: Django with multiple ManyToManyField form

How can I get the list of all apps and display them alongside a checkbox that gets saved/updated back to EmployeeApps?

models.py

class Employees(models.Model):
    name = models.CharField()

class Apps(models.Model):
    name = models.CharField()

class EmployeeApps(models.Model):
    employee = models.ForeignKey(“Employees”, on_delete=models.CASCADE)
    apps = models.ForeignKey(“Apps”, on_delete=models.CASCADE)
    status = models.IntegerField(choices=STATUS_CHOICES)

```

ContentLicense: CC BY-SA 4.0


问:
How to emulate Android ACTION_MOVE behavior in Compose?
I have been trying to make similar behavior to a traditional View's ACTION_MOVE touch event in Compose. Basically I have a grid of 4x4 Box items, and I want to have a way to touch/click down outside of them, and then drag into them, and have the drag event fire.

I have tried with pointerInput(Unit) { detectDragGestures { but this is only working for me if I click down inside the box and then drag, not if I start dragging outside the box and then drag into it like I can with a TouchListener.

Is there another method to use?


问:
How to decrypt AES from CryptoJS in PHP?
```<code>var CryptoJS = require("crypto-js");

const a = {
  name: "Burak",
  surName: "Bayraktaroglu"
};

const aString = JSON.stringify(a);

// Encrypt
var ciphertext = CryptoJS.AES.encrypt(
  aString,
  "XRWT2lTKcr13PbTRaWndA6H8AT6JuBwBVkrCpSGJ6cE6JnEhDHHV6Xz26gULg5rM"
).toString();

console.log(ciphertext);

// Decrypt
var bytes = CryptoJS.AES.decrypt(
  ciphertext,
  "XRWT2lTKcr13PbTRaWndA6H8AT6JuBwBVkrCpSGJ6cE6JnEhDHHV6Xz26gULg5rM"
);
var originalText = bytes.toString(CryptoJS.enc.Utf8);
const jsonObject = JSON.parse(originalText);

console.log(jsonObject);
</code>```

i want to decrypt ciphertext in php

```<code><?php

$plaintext = '{"phoneNumber":"+628888888888","phoneNumberValid":"+628888888888","phoneNumberMiniSurvey":"","calculateLoan":"","specialRateResult":"","dob":"","checkBox1":"Y","checkBox2":"N","submittedForm":"N","isLogin":"N","email":"","nameTmp":"Dzarr al ghifari","gender":"","isRegistered":"N","name":"Dzarr al ghifari"}';
$password = 'XRWT2lTKcr13PbTRaWndA6H8AT6JuBwBVkrCpSGJ6cE6JnEhDHHV6Xz26gULg5rM';
$method = 'aes-256-cbc';

// Must be exact 32 chars (256 bit)
$password = substr(hash('sha256', $password, true), 0, 32);
echo "Password:" . $password . "\n";

// IV must be exact 16 chars (128 bit)
$iv = chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0);

// av3DYGLkwBsErphcyYp+imUW4QKs19hUnFyyYcXwURU=
$encrypted = base64_encode(openssl_encrypt($plaintext, $method, $password, OPENSSL_RAW_DATA, $iv));

$$encrypted = base64_encode("U2FsdGVkX1/ABCbXVG5iVcjZ+qVwLcXJ0Mbxfr8EEU+2JNVji7yiYQQGEjeWB4MgFWE89BTPXDdyBvjGCpfQ+BH5evxyS/Fj1OeijQr0RmhWliiazgX90gOLEBOBAw9FzyJn8m3CzjrJksx27q/a7izq4mAVRAitj4/1m0+uI8sBSqmC2HGxmol7MxQxODE/cYbmYYOrg+wFgg8J3+mYv2dDcHIIXknTyZsGx26CicZ//tWwGkdIhjDuWo5Rq5IqlFcqST9F3m5NicDSiy/hotQEFP9PrRveAtNnMnTuOWcSsNp63zfR2oPSy22Z7cz6+4fnu4eEjguyxeN38RRU5jbUFBQLxrth8tERI44O/fRMQiMheDUBUdCVIsh0vGHh7F17t/oBBTq5YrD8l+noMUE/M6kBa5Yr24NLw/PYDgPyO9jD5XMUhNXmFeLUe8SQ");
$iv = "a591cdd0d7bea71eae2eefe4c73f612f";

// My secret message 1234
$decrypted = openssl_decrypt(base64_decode($encrypted), $method, $password, OPENSSL_RAW_DATA, $iv);

echo 'plaintext=' . $plaintext . "\n";
echo 'cipher=' . $method . "\n";
echo 'encrypted to: ' . $encrypted . "\n";
echo 'decrypted to: ' . $decrypted . "\n\n";
</code>```

result isn't match with plain text :

plaintext=

```<code>{"phoneNumber":"+628888888888","phoneNumberValid":"+628888888888","phoneNumberMiniSurvey":"","calculateLoan":"","specialRateResult":"","dob":"","checkBox1":"Y","checkBox2":"N","submittedForm":"N","isLogin":"N","email":"","nameTmp":"Dzarr al ghifari","gender":"","isRegistered":"N","name":"Dzarr al ghifari"}
</code>```

decrypted to:

```<code>IY  ~ZG+628888888888","phoneNumberValid":"+628888888888","phoneNumberMiniSurvey":"","calculateLoan":"","specialRateResult":"","dob":"","checkBox1":"Y","checkBox2":"N","submittedForm":"N","isLogin":"N","email":"","nameTmp":"Dzarr al ghifari","gender":"","isRegistered":"N","name":"Dzarr al ghifari"}
</code>```

Body:
var CryptoJS = require("crypto-js");

const a = {
  name: "Burak",
  surName: "Bayraktaroglu"
};

const aString = JSON.stringify(a);

// Encrypt
var ciphertext = CryptoJS.AES.encrypt(
  aString,
  "XRWT2lTKcr13PbTRaWndA6H8AT6JuBwBVkrCpSGJ6cE6JnEhDHHV6Xz26gULg5rM"
).toString();

console.log(ciphertext);

// Decrypt
var bytes = CryptoJS.AES.decrypt(
  ciphertext,
  "XRWT2lTKcr13PbTRaWndA6H8AT6JuBwBVkrCpSGJ6cE6JnEhDHHV6Xz26gULg5rM"
);
var originalText = bytes.toString(CryptoJS.enc.Utf8);
const jsonObject = JSON.parse(originalText);

console.log(jsonObject);

i want to decrypt ciphertext in php

<?php

$plaintext = '{"phoneNumber":"+628888888888","phoneNumberValid":"+628888888888","phoneNumberMiniSurvey":"","calculateLoan":"","specialRateResult":"","dob":"","checkBox1":"Y","checkBox2":"N","submittedForm":"N","isLogin":"N","email":"","nameTmp":"Dzarr al ghifari","gender":"","isRegistered":"N","name":"Dzarr al ghifari"}';
$password = 'XRWT2lTKcr13PbTRaWndA6H8AT6JuBwBVkrCpSGJ6cE6JnEhDHHV6Xz26gULg5rM';
$method = 'aes-256-cbc';

// Must be exact 32 chars (256 bit)
$password = substr(hash('sha256', $password, true), 0, 32);
echo "Password:" . $password . "\n";

// IV must be exact 16 chars (128 bit)
$iv = chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0);

// av3DYGLkwBsErphcyYp+imUW4QKs19hUnFyyYcXwURU=
$encrypted = base64_encode(openssl_encrypt($plaintext, $method, $password, OPENSSL_RAW_DATA, $iv));

$$encrypted = base64_encode("U2FsdGVkX1/ABCbXVG5iVcjZ+qVwLcXJ0Mbxfr8EEU+2JNVji7yiYQQGEjeWB4MgFWE89BTPXDdyBvjGCpfQ+BH5evxyS/Fj1OeijQr0RmhWliiazgX90gOLEBOBAw9FzyJn8m3CzjrJksx27q/a7izq4mAVRAitj4/1m0+uI8sBSqmC2HGxmol7MxQxODE/cYbmYYOrg+wFgg8J3+mYv2dDcHIIXknTyZsGx26CicZ//tWwGkdIhjDuWo5Rq5IqlFcqST9F3m5NicDSiy/hotQEFP9PrRveAtNnMnTuOWcSsNp63zfR2oPSy22Z7cz6+4fnu4eEjguyxeN38RRU5jbUFBQLxrth8tERI44O/fRMQiMheDUBUdCVIsh0vGHh7F17t/oBBTq5YrD8l+noMUE/M6kBa5Yr24NLw/PYDgPyO9jD5XMUhNXmFeLUe8SQ");
$iv = "a591cdd0d7bea71eae2eefe4c73f612f";

// My secret message 1234
$decrypted = openssl_decrypt(base64_decode($encrypted), $method, $password, OPENSSL_RAW_DATA, $iv);

echo 'plaintext=' . $plaintext . "\n";
echo 'cipher=' . $method . "\n";
echo 'encrypted to: ' . $encrypted . "\n";
echo 'decrypted to: ' . $decrypted . "\n\n";

result isn't match with plain text :

plaintext=

{"phoneNumber":"+628888888888","phoneNumberValid":"+628888888888","phoneNumberMiniSurvey":"","calculateLoan":"","specialRateResult":"","dob":"","checkBox1":"Y","checkBox2":"N","submittedForm":"N","isLogin":"N","email":"","nameTmp":"Dzarr al ghifari","gender":"","isRegistered":"N","name":"Dzarr al ghifari"}

decrypted to:

IY  ~ZG+628888888888","phoneNumberValid":"+628888888888","phoneNumberMiniSurvey":"","calculateLoan":"","specialRateResult":"","dob":"","checkBox1":"Y","checkBox2":"N","submittedForm":"N","isLogin":"N","email":"","nameTmp":"Dzarr al ghifari","gender":"","isRegistered":"N","name":"Dzarr al ghifari"}


问:
Can't run compose in Bitbucket pipeline getting --privileged=true is not allowed
I also opened an issue for this on the Atlassian community forum: https://community.atlassian.com/t5/Jira-Work-Management-Questions/Can-t-run-compose-in-bitbucket-pipelines-getting-privileged-true/qaq-p/2233411

Bitbucket pipelines are supposed to support buildkit now and they even say in their docs compose is supported as well.

This is my compose file:

```<code>version: "3.9"
services:
  myservice:
    platform: linux/amd64
    privileged: false # I also tried adding this
    image: someimage
    build:
      context: .
      dockerfile: "Dockerfile"
      secrets:
        - pypi_conf

secrets:
  pypi_conf:
    file: "${BITBUCKET_CLONE_DIR}/pypi_config/pip/pip.conf"
</code>```

This is my yaml:

```<code>image: atlassian/default-image:3

definitions:
  services:
    docker:
      memory: 3072
  steps:
    - step: &build
        name: Build
        image:
          name: tiangolo/docker-with-compose
        script:
          - export DOCKER_BUILDKIT=1
          - docker compose build
        services:
          - docker
pipelines:
  default:
    - step: *build
  branches:
    master:
      - step: *build
</code>```

I'm not mounting anything outside of the allowed BITBUCKET_CLONE_DIR.

But I get this error:

```<code>#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 3.1s done
#1 creating container buildx_buildkit_default done
#1 ERROR: Error response from daemon: authorization denied by plugin pipelines: --privileged=true is not allowed
------
 > [internal] booting buildkit:
------
Error response from daemon: authorization denied by plugin pipelines: --privileged=true is not allowed
make: *** [Makefile:134: testing] Error 17
</code>```

Update

I found that both docker-compose and docker compose fail if I turn on buildkit with export DOCKER_BUILDKIT=1. So it's not even just the secret mounting feature, it's Compose + buildkit that generates this error.

Body:
I also opened an issue for this on the Atlassian community forum: https://community.atlassian.com/t5/Jira-Work-Management-Questions/Can-t-run-compose-in-bitbucket-pipelines-getting-privileged-true/qaq-p/2233411

Bitbucket pipelines are supposed to support buildkit now and they even say in their docs compose is supported as well.

This is my compose file:

version: "3.9"
services:
  myservice:
    platform: linux/amd64
    privileged: false # I also tried adding this
    image: someimage
    build:
      context: .
      dockerfile: "Dockerfile"
      secrets:
        - pypi_conf

secrets:
  pypi_conf:
    file: "${BITBUCKET_CLONE_DIR}/pypi_config/pip/pip.conf"

This is my yaml:

image: atlassian/default-image:3

definitions:
  services:
    docker:
      memory: 3072
  steps:
    - step: &build
        name: Build
        image:
          name: tiangolo/docker-with-compose
        script:
          - export DOCKER_BUILDKIT=1
          - docker compose build
        services:
          - docker
pipelines:
  default:
    - step: *build
  branches:
    master:
      - step: *build

I'm not mounting anything outside of the allowed BITBUCKET_CLONE_DIR.

But I get this error:

#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 3.1s done
#1 creating container buildx_buildkit_default done
#1 ERROR: Error response from daemon: authorization denied by plugin pipelines: --privileged=true is not allowed
------
 > [internal] booting buildkit:
------
Error response from daemon: authorization denied by plugin pipelines: --privileged=true is not allowed
make: *** [Makefile:134: testing] Error 17

Update

I found that both docker-compose and docker compose fail if I turn on buildkit with export DOCKER_BUILDKIT=1. So it's not even just the secret mounting feature, it's Compose + buildkit that generates this error.


问:
Unable to process data from push notification in IOS
I have set up everything and i do receive a push notification but I am unable to process it. i.e I want a pop up window to show together when i receive the message. The pop
As the notification is received i want to use this function  retrieveRideRequestInfo(getRideRequestId(message.data)!, context); to get the data in the notification and build a  pop up window. On IOS i get Null check operator used on a null value at (message.data)!

This is the getRideRequestId function

```<code>String? getRideRequestId(Map<String, dynamic> message) {
    String? rideRequestId = "";

    if (Platform.isAndroid) {
      // print();
      rideRequestId = message['ride_request_id'];
      print("This is ride request ID :$rideRequestId");
    } else {
      //for ios
      rideRequestId = message['data'];
    }
    //doublenotification++;
    return rideRequestId;
  }
</code>```

In android it works fine but in Ios I get an error Null check operator used on a null value This is at  retrieveRideRequestInfo(getRideRequestId(message.data)!, context);

This is How i send the notification from another device, Is it correct ror ios ?

```<code>static sendNotificationToDriver(
      String token, context, String rideRequestId) async {
    try {
      await http.post(
        Uri.parse('https://fcm.googleapis.com/fcm/send'),
        headers: <String, String>{
          'Authorization': serverToken,
          'Content-Type': 'application/json',
        },
        body: jsonEncode({
          "to": token,
          "collapse_key": "type_a",
          "notification": {
            "body": "Nepali Rider",
            "title": "You have a new Ride"
          },
          "data": {"ride_request_id": rideRequestId}
        }),
      );
      print('FCM request for device sent!');
    } catch (e) {
      print(e);
    }
    print("ride request id :$rideRequestId");
    print("ride request id :$token");
    print(jsonEncode);
  }
</code>```

Body:
I have set up everything and i do receive a push notification but I am unable to process it. i.e I want a pop up window to show together when i receive the message. The pop
As the notification is received i want to use this function  retrieveRideRequestInfo(getRideRequestId(message.data)!, context); to get the data in the notification and build a  pop up window. On IOS i get Null check operator used on a null value at (message.data)!

This is the getRideRequestId function

String? getRideRequestId(Map<String, dynamic> message) {
    String? rideRequestId = "";

    if (Platform.isAndroid) {
      // print();
      rideRequestId = message['ride_request_id'];
      print("This is ride request ID :$rideRequestId");
    } else {
      //for ios
      rideRequestId = message['data'];
    }
    //doublenotification++;
    return rideRequestId;
  }

In android it works fine but in Ios I get an error Null check operator used on a null value This is at  retrieveRideRequestInfo(getRideRequestId(message.data)!, context);

This is How i send the notification from another device, Is it correct ror ios ?

static sendNotificationToDriver(
      String token, context, String rideRequestId) async {
    try {
      await http.post(
        Uri.parse('https://fcm.googleapis.com/fcm/send'),
        headers: <String, String>{
          'Authorization': serverToken,
          'Content-Type': 'application/json',
        },
        body: jsonEncode({
          "to": token,
          "collapse_key": "type_a",
          "notification": {
            "body": "Nepali Rider",
            "title": "You have a new Ride"
          },
          "data": {"ride_request_id": rideRequestId}
        }),
      );
      print('FCM request for device sent!');
    } catch (e) {
      print(e);
    }
    print("ride request id :$rideRequestId");
    print("ride request id :$token");
    print(jsonEncode);
  }


问:
next/image not working after hosting with AWS Amplify
When hosting to aws amplify the s3 image are not working and returning

"url" parameter is valid but upstream response is invalid

Everything works fine if I deploy it via Vercel. However, when I tried to deploy on AWS Amplify, images from s3 bucket are not showing up

Could you please let me know what the issue is?


问:
Postman request to Spring endpoint works, but not from React Axios Request
As the title says I cannot get my post request to my Spring Controller to return a response, but from postman it returns the JWT token which I am trying to get no problem.

I have tried to implement CORS in my Spring Backend and heres how I did with a Config class:

```<code>    @Bean
    CorsConfigurationSource corsConfigurationSource() {
        CorsConfiguration config = new CorsConfiguration();
        config.setAllowedOrigins(List.of("http://localhost:3000"));
        config.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE"));
        config.setAllowCredentials(true);
        config.addAllowedHeader("*"); // Allow any header
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        source.registerCorsConfiguration("/api/auth/**", config);
        return source;
    }
</code>```

I also enabled @Cors within my Controller class:

```<code>@RestController
@EnableMethodSecurity
@CrossOrigin
@RequestMapping("/api/auth")
@RequiredArgsConstructor
public class UserController {

    private final ProviderManager authenticationManager;
    @Autowired
    UserService userService;
    @Autowired
    UserRepository repository;
    @Autowired
    PasswordEncoder passwordEncoder;
    @Autowired
    JwtService jwtService;
    @Autowired
    DetailService userDetailService;

    @PostMapping(value = "/register",  consumes = MediaType.APPLICATION_JSON_VALUE)
    public ResponseEntity<?> handleRegistration(@RequestBody UserRegistrationForm userRegistrationForm,
                                                           HttpServletRequest request,
                                                           HttpServletResponse response) throws IOException {

        UserDTO userDTO = new UserDTO();
        userDTO.setEmail(userRegistrationForm.getEmail());
        userDTO.setPassword(passwordEncoder.encode(userRegistrationForm.getPassword()));
        userDTO.setFirstName(userRegistrationForm.getFirstName());
        userDTO.setLastName(userRegistrationForm.getLastName());
        userDTO.setRoleName(Set.of("ROLE_USER"));
        userDTO.setUsername(userRegistrationForm.getUsername());

        User users = new User();
        users.setUsername(userDTO.getUsername());
        users.setEmail(userDTO.getEmail());
        users.setPassword(userDTO.getPassword());
        users.setFirstName(userDTO.getFirstName());
        users.setLastName(userDTO.getLastName());
        users.setRoleName(userDTO.getRoleName());
        try {
            User user = userService.saveUser(users);
            if(user != null) {
                response.setStatus(HttpServletResponse.SC_ACCEPTED);
                String jwtToken = jwtService.generateToken(userDetailService.loadUserByUsername(user.getUsername()));
                return ResponseEntity.ok(jwtToken);
            }
        } catch (Exception e) {
            if (repository.findByUsername(users.getUsername()).isPresent()
                    && repository.findByEmail(users.getEmail()).isPresent()) {
                throw new UserException(String.format("User already exists with the username: %s and the email: %s",
                        users.getUsername(), users.getEmail()));
            } else if (repository.findByUsername(users.getUsername()).isPresent()) {

                throw new UserException(String.format("User already exists with the username: %s", users.getUsername()));
            } else if (repository.findByEmail(users.getEmail()).isPresent()) {
                throw new UserException(String.format("User already exists with the email: %s", users.getEmail()));
            }
        }
        response.sendRedirect("/login?registrationSuccess=true");
        return (ResponseEntity<?>) ResponseEntity.status(HttpServletResponse.SC_ACCEPTED);
    }
</code>```

Finally my SecurityFilterChain
which I tried to follow: https://docs.spring.io/spring-security/reference/reactive/integrations/cors.html

```<code>    @Bean
    public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{
        http
                .csrf()
                .disable()
                .cors()
                .and()
                .authorizeHttpRequests()
                .requestMatchers("/api/auth/**")
                .permitAll()
                .anyRequest()
                .authenticated()
                .and()
                .sessionManagement()
                .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
                .and()
                .authenticationProvider(authProvider)
                .addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class);

        return http.build();
    }
</code>```

Sample postman request:

When I try from Axios with the following code

```<code>      const submitRegistration = (event) => {
            console.log(registrationData);
            axios.post("http://localhost:8080/api/auth/register", registrationData)
            .then(response =>{
                    if(response.status === 200){
                        console.log(response);
                        window.location.replace("/login?registration=success");
                    }else{
                        console.error("Error registering: ", response.data)
                    }
                }).catch(error =>{
                    console.log(registrationData);
                    console.error(error);
                    window.location = '/error';
                });
        }
</code>```

I get:

I then after seeing the You need to enable javascript portion tried adding

```<code>"proxy": "http://localhost:3000",
</code>```

To no avail.

Any thoughts would be appreciated :)

Body:
As the title says I cannot get my post request to my Spring Controller to return a response, but from postman it returns the JWT token which I am trying to get no problem.

I have tried to implement CORS in my Spring Backend and heres how I did with a Config class:

    @Bean
    CorsConfigurationSource corsConfigurationSource() {
        CorsConfiguration config = new CorsConfiguration();
        config.setAllowedOrigins(List.of("http://localhost:3000"));
        config.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE"));
        config.setAllowCredentials(true);
        config.addAllowedHeader("*"); // Allow any header
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        source.registerCorsConfiguration("/api/auth/**", config);
        return source;
    }

I also enabled @Cors within my Controller class:

@RestController
@EnableMethodSecurity
@CrossOrigin
@RequestMapping("/api/auth")
@RequiredArgsConstructor
public class UserController {

    private final ProviderManager authenticationManager;
    @Autowired
    UserService userService;
    @Autowired
    UserRepository repository;
    @Autowired
    PasswordEncoder passwordEncoder;
    @Autowired
    JwtService jwtService;
    @Autowired
    DetailService userDetailService;

    @PostMapping(value = "/register",  consumes = MediaType.APPLICATION_JSON_VALUE)
    public ResponseEntity<?> handleRegistration(@RequestBody UserRegistrationForm userRegistrationForm,
                                                           HttpServletRequest request,
                                                           HttpServletResponse response) throws IOException {

        UserDTO userDTO = new UserDTO();
        userDTO.setEmail(userRegistrationForm.getEmail());
        userDTO.setPassword(passwordEncoder.encode(userRegistrationForm.getPassword()));
        userDTO.setFirstName(userRegistrationForm.getFirstName());
        userDTO.setLastName(userRegistrationForm.getLastName());
        userDTO.setRoleName(Set.of("ROLE_USER"));
        userDTO.setUsername(userRegistrationForm.getUsername());

        User users = new User();
        users.setUsername(userDTO.getUsername());
        users.setEmail(userDTO.getEmail());
        users.setPassword(userDTO.getPassword());
        users.setFirstName(userDTO.getFirstName());
        users.setLastName(userDTO.getLastName());
        users.setRoleName(userDTO.getRoleName());
        try {
            User user = userService.saveUser(users);
            if(user != null) {
                response.setStatus(HttpServletResponse.SC_ACCEPTED);
                String jwtToken = jwtService.generateToken(userDetailService.loadUserByUsername(user.getUsername()));
                return ResponseEntity.ok(jwtToken);
            }
        } catch (Exception e) {
            if (repository.findByUsername(users.getUsername()).isPresent()
                    && repository.findByEmail(users.getEmail()).isPresent()) {
                throw new UserException(String.format("User already exists with the username: %s and the email: %s",
                        users.getUsername(), users.getEmail()));
            } else if (repository.findByUsername(users.getUsername()).isPresent()) {

                throw new UserException(String.format("User already exists with the username: %s", users.getUsername()));
            } else if (repository.findByEmail(users.getEmail()).isPresent()) {
                throw new UserException(String.format("User already exists with the email: %s", users.getEmail()));
            }
        }
        response.sendRedirect("/login?registrationSuccess=true");
        return (ResponseEntity<?>) ResponseEntity.status(HttpServletResponse.SC_ACCEPTED);
    }

Finally my SecurityFilterChain
which I tried to follow: https://docs.spring.io/spring-security/reference/reactive/integrations/cors.html

    @Bean
    public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{
        http
                .csrf()
                .disable()
                .cors()
                .and()
                .authorizeHttpRequests()
                .requestMatchers("/api/auth/**")
                .permitAll()
                .anyRequest()
                .authenticated()
                .and()
                .sessionManagement()
                .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
                .and()
                .authenticationProvider(authProvider)
                .addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class);

        return http.build();
    }

Sample postman request:

When I try from Axios with the following code

      const submitRegistration = (event) => {
            console.log(registrationData);
            axios.post("http://localhost:8080/api/auth/register", registrationData)
            .then(response =>{
                    if(response.status === 200){
                        console.log(response);
                        window.location.replace("/login?registration=success");
                    }else{
                        console.error("Error registering: ", response.data)
                    }
                }).catch(error =>{
                    console.log(registrationData);
                    console.error(error);
                    window.location = '/error';
                });
        }

I get:

I then after seeing the You need to enable javascript portion tried adding

"proxy": "http://localhost:3000",

To no avail.

Any thoughts would be appreciated :)


问:
ion-select multiple select with popover interface, disable last option on change if it's only one remaining
Requirement

there should be an ion select with multiple selection

default all should be selected

when interacting with it, if there is one selected left, that option should get disabled.

and if in next action, other options are getting selected, disabled option should get enabled again.

Simple agenda is to not let user deselect all of them, at least one should remain selected (last remaining).

I have tried different approaches, with popover, actionsheet and alert, for all of three it's has the behaviour as, Ion-select option gets disable property check reflected, but the native code for popover that is getting generated with ion-popover is not reflecting same on ion-items with checkbox on popover.

It gets disable only once the popover is dismissed and opened again. in this case as well, if user starts selecting other, the other option should get enabled again as we have multiple choices now, (that logic is not added in snippet below, i.e once disabled next step is to enable it on other options selection).

HTML:

```<code><ion-col
     size="auto"
     *ngIf="floorOptions.length">
    <ion-select
         class="filter-drop"
         interface="popover"
         [multiple]="true"
         [ngModel]="floorsSelected"
         (ionChange)="filterByFloor($event)"
         [selectedText]="selectedTextFloor">
              <ion-select-option
                  *ngFor="let op of floorOptions"
                  [value]="op.floorID">
                       {{op.floorName}}
                  </ion-select-option>
     </ion-select>
</ion-col>
</code>```

TS:

```<code>MIN_FILTER_OPTIONS_LENGTH:number = 1;// atleast one option to remain selected.
floorOptions =
[
    {
        "floorID": "1",
        "floorName": "Floor 1",
        "isOn": true
    },
    {
        "floorID": "2",
        "floorName": "Floor 2",
        "isOn": true
    },
    {
        "floorID": "3",
        "floorName": "Floor 3",
        "isOn": true
    },
    {
        "floorID": "4",
        "floorName": "Floor 4",
        "isOn": true
    },
    {
        "floorID": "5",
        "floorName": "Floor 5",
        "isOn": true
    }
];
floorsSelected = [];
lastFloor: boolean = false;
invalidSelectClass = false;
selectedTextFloor = 'All floors';

  filterByFloor(floorChangedEvent) {
    this.floorsSelected = floorChangedEvent.detail.value;
    this.floorOptions.map((floor) => {
      floor.isOn = this.floorsSelected.indexOf(floor.floorID) != -1;
    });
    this.selectedTextFloor = this.floorsSelected.length === this.floorOptions.length ? 'All floors': '';
    this.lastFloor = this.floorsSelected.length == MIN_FILTER_OPTIONS_LENGTH;
    console.log(this.lastFloor);
    this.cdr.detectChanges();
    if (!this.floorsSelected.length) {
      this.invalidSelectClass = true;
      this.uiUtilityService.showToast({ message: 'Please select atleast one floor to see results.' });
      return;
    }
    // this.applyFilters(); // function to filter records based on selection
  }
</code>```

Ionic Info

```<code>Ionic:

   Ionic CLI                     : 6.20.3 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.2.5
   @angular-devkit/build-angular : 14.2.1
   @angular-devkit/schematics    : 14.2.1
   @angular/cli                  : 14.2.1
   @ionic/angular-toolkit        : 6.1.0

Capacitor:

   Capacitor CLI      : 4.1.0
   @capacitor/android : not installed
   @capacitor/core    : 4.1.0
   @capacitor/ios     : not installed

Utility:

   cordova-res                          : 0.15.4
   native-run (update available: 1.7.1) : 1.6.0

System:

   NodeJS : v16.14.0 (/usr/local/bin/node)
   npm    : 8.5.0
   OS     : macOS
</code>```

Body:
Requirement

there should be an ion select with multiple selection

default all should be selected

when interacting with it, if there is one selected left, that option should get disabled.

and if in next action, other options are getting selected, disabled option should get enabled again.

Simple agenda is to not let user deselect all of them, at least one should remain selected (last remaining).

I have tried different approaches, with popover, actionsheet and alert, for all of three it's has the behaviour as, Ion-select option gets disable property check reflected, but the native code for popover that is getting generated with ion-popover is not reflecting same on ion-items with checkbox on popover.

It gets disable only once the popover is dismissed and opened again. in this case as well, if user starts selecting other, the other option should get enabled again as we have multiple choices now, (that logic is not added in snippet below, i.e once disabled next step is to enable it on other options selection).

HTML:

<ion-col
     size="auto"
     *ngIf="floorOptions.length">
    <ion-select
         class="filter-drop"
         interface="popover"
         [multiple]="true"
         [ngModel]="floorsSelected"
         (ionChange)="filterByFloor($event)"
         [selectedText]="selectedTextFloor">
              <ion-select-option
                  *ngFor="let op of floorOptions"
                  [value]="op.floorID">
                       {{op.floorName}}
                  </ion-select-option>
     </ion-select>
</ion-col>

TS:

MIN_FILTER_OPTIONS_LENGTH:number = 1;// atleast one option to remain selected.
floorOptions =
[
    {
        "floorID": "1",
        "floorName": "Floor 1",
        "isOn": true
    },
    {
        "floorID": "2",
        "floorName": "Floor 2",
        "isOn": true
    },
    {
        "floorID": "3",
        "floorName": "Floor 3",
        "isOn": true
    },
    {
        "floorID": "4",
        "floorName": "Floor 4",
        "isOn": true
    },
    {
        "floorID": "5",
        "floorName": "Floor 5",
        "isOn": true
    }
];
floorsSelected = [];
lastFloor: boolean = false;
invalidSelectClass = false;
selectedTextFloor = 'All floors';

  filterByFloor(floorChangedEvent) {
    this.floorsSelected = floorChangedEvent.detail.value;
    this.floorOptions.map((floor) => {
      floor.isOn = this.floorsSelected.indexOf(floor.floorID) != -1;
    });
    this.selectedTextFloor = this.floorsSelected.length === this.floorOptions.length ? 'All floors': '';
    this.lastFloor = this.floorsSelected.length == MIN_FILTER_OPTIONS_LENGTH;
    console.log(this.lastFloor);
    this.cdr.detectChanges();
    if (!this.floorsSelected.length) {
      this.invalidSelectClass = true;
      this.uiUtilityService.showToast({ message: 'Please select atleast one floor to see results.' });
      return;
    }
    // this.applyFilters(); // function to filter records based on selection
  }

Ionic Info

Ionic:

   Ionic CLI                     : 6.20.3 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.2.5
   @angular-devkit/build-angular : 14.2.1
   @angular-devkit/schematics    : 14.2.1
   @angular/cli                  : 14.2.1
   @ionic/angular-toolkit        : 6.1.0

Capacitor:

   Capacitor CLI      : 4.1.0
   @capacitor/android : not installed
   @capacitor/core    : 4.1.0
   @capacitor/ios     : not installed

Utility:

   cordova-res                          : 0.15.4
   native-run (update available: 1.7.1) : 1.6.0

System:

   NodeJS : v16.14.0 (/usr/local/bin/node)
   npm    : 8.5.0
   OS     : macOS


问:
Google Script : How to prevent the 2nd execution of script function while the 1st is still running
I have a script function connected to a button in a google sheet.
If the user click 2 times on the button, the script will be launch 2 times, so the 2 same scripts are running almost simultaneously.

I would like to prevent this. If the user click on the 2nd time on the button, while the 1st one is still running, then the 2nd click should be ignored.
How can I do this ?