hive on tez java.lang.NumberFormatException: For input string: “30s“

2022-09-02 11:01:03,983 [INFO] [main] |app.DAGAppMaster|: Creating DAGAppMaster for applicationId=application_1658852014961_0068, attemptNum=1, AMContainerId=container_1658852014961_0068_01_000001, jvmPid=8152, userFromEnv=ucmed, cliSessionOption=true, pwd=/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001, localDirs=/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068, logDirs=/usr/local/src/hadoop/hadoop-3.3.1/logs/userlogs/application_1658852014961_0068/container_1658852014961_0068_01_000001
2022-09-02 11:01:04,417 [INFO] [main] |app.DAGAppMaster|: Created DAGAppMaster for application appattempt_1658852014961_0068_000001, versionInfo=[ component=tez-dag, version=0.9.2, revision=10cb3519bd34389210e6511a2ba291b52dcda081, SCM-URL=scm:git:https://gitbox.apache.org/repos/asf/tez.git, buildTime=2019-03-19T20:51:15Z ]
2022-09-02 11:01:04,457 [INFO] [main] |app.DAGAppMaster|: 
/************************************************************
[system properties]
os.name: Linux
os.version: 3.10.0-514.el7.x86_64
java.home: /usr/local/src/jdk/jdk1.8.0_311/jre
java.runtime.version: 1.8.0_311-b11
java.vendor: Oracle Corporation
java.version: 1.8.0_311
java.vm.name: Java HotSpot(TM) 64-Bit Server VM
java.class.path: /opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/hive-exec-3.1.2-50b0545693ae9392559584116a172ee32922e57ae9ea0eb7dc120290c217c2d5.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/hadoop-shim-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-api-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-build-tools-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-common-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-runtime-internals-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-runtime-library-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-mapreduce-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-examples-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-dag-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-tests-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-ext-service-tests-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-protobuf-history-plugin-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-yarn-timeline-history-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-yarn-timeline-history-with-acls-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-history-parser-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-job-analyzer-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/tez-javadoc-tools-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/hadoop-shim-2.7-0.9.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/slf4j-api-1.7.10.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-yarn-api-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-lang-2.6.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/guava-11.0.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jsr305-3.0.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-logging-1.1.3.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/protobuf-java-2.5.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-common-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-annotations-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-cli-1.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-math3-3.1.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/xmlenc-0.52.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-codec-1.4.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-io-2.4.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-net-3.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-collections-3.2.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jersey-json-1.9.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jettison-1.3.4.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jaxb-impl-2.2.3-1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jaxb-api-2.2.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/stax-api-1.0-2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/activation-1.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jackson-core-asl-1.9.13.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jackson-mapper-asl-1.9.13.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jackson-jaxrs-1.9.13.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jackson-xc-1.9.13.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/log4j-1.2.17.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-configuration-1.6.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-digester-1.8.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-beanutils-1.7.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-beanutils-core-1.8.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/slf4j-log4j12-1.7.10.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/avro-1.7.4.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/paranamer-2.3.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/snappy-java-1.0.4.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-compress-1.4.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/xz-1.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/gson-2.2.4.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-auth-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/httpclient-4.2.5.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/httpcore-4.2.4.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/apacheds-i18n-2.0.0-M15.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/api-asn1-api-1.0.0-M20.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/api-util-1.0.0-M20.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/zookeeper-3.4.6.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/netty-3.6.2.Final.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/curator-framework-2.7.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/curator-client-2.7.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/curator-recipes-2.7.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/htrace-core-3.1.0-incubating.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/stax-api-1.0.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-yarn-common-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/servlet-api-2.5.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jetty-util-6.1.26.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jersey-core-1.9.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jersey-client-1.9.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/guice-servlet-3.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/guice-3.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/javax.inject-1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/aopalliance-1.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jersey-guice-1.9.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-yarn-client-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/commons-collections4-4.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jetty-6.1.26.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/netty-all-4.0.23.Final.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/xercesImpl-2.9.1.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/xml-apis-1.3.04.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/leveldbjni-all-1.8.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-hdfs-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/RoaringBitmap-0.5.21.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/async-http-client-1.8.16.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-mapreduce-client-core-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-mapreduce-client-common-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-yarn-server-web-proxy-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/hadoop-yarn-server-common-2.7.2.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jetty-server-9.3.24.v20180605.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/javax.servlet-api-3.1.0.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jetty-http-9.3.24.v20180605.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jetty-util-9.3.24.v20180605.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/jetty-io-9.3.24.v20180605.jar:/opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tezlib/lib/metrics-core-3.1.0.jar:
java.io.tmpdir: /opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001/tmp
user.dir: /opt/hdfs/data/nm-local-dir/usercache/ucmed/appcache/application_1658852014961_0068/container_1658852014961_0068_01_000001
user.name: ucmed
************************************************************/
2022-09-02 11:01:04,483 [INFO] [main] |shim.HadoopShimsLoader|: Trying to locate HadoopShimProvider for hadoopVersion=2.7.2, majorVersion=2, minorVersion=7
2022-09-02 11:01:04,484 [INFO] [main] |shim.HadoopShimsLoader|: Picked HadoopShim org.apache.tez.hadoop.shim.HadoopShim27, providerName=org.apache.tez.hadoop.shim.HadoopShim25_26_27Provider, overrideProviderViaConfig=null, hadoopVersion=2.7.2, majorVersion=2, minorVersion=7
2022-09-02 11:01:04,508 [INFO] [main] |app.DAGAppMaster|: AM Level configured TaskSchedulers: [0:TezYarn:null],[1:TezUber:null]
2022-09-02 11:01:04,508 [INFO] [main] |app.DAGAppMaster|: AM Level configured ContainerLaunchers: [0:TezYarn:null],[1:TezUber:null]
2022-09-02 11:01:04,508 [INFO] [main] |app.DAGAppMaster|: AM Level configured TaskCommunicators: [0:TezYarn:null],[1:TezUber:null]
2022-09-02 11:01:04,508 [INFO] [main] |app.DAGAppMaster|: Comparing client version with AM version, clientVersion=0.9.2, AMVersion=0.9.2
2022-09-02 11:01:04,602 [INFO] [main] |service.AbstractService|: Service org.apache.tez.dag.app.DAGAppMaster failed in state INITED; cause: java.lang.NumberFormatException: For input string: "30s"
java.lang.NumberFormatException: For input string: "30s"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Long.parseLong(Long.java:589)
	at java.lang.Long.parseLong(Long.java:631)
	at org.apache.hadoop.conf.Configuration.getLong(Configuration.java:1311)
	at org.apache.hadoop.hdfs.DFSClient$Conf.<init>(DFSClient.java:502)
	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:638)
	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
	at org.apache.tez.common.TezCommonUtils.getTezBaseStagingPath(TezCommonUtils.java:87)
	at org.apache.tez.common.TezCommonUtils.getTezSystemStagingPath(TezCommonUtils.java:146)
	at org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:492)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.tez.dag.app.DAGAppMaster$9.run(DAGAppMaster.java:2662)
	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:1657)
	at org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2659)
	at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2464)
2022-09-02 11:01:04,606 [WARN] [main] |service.AbstractService|: When stopping the service org.apache.tez.dag.app.DAGAppMaster : java.lang.NullPointerException
java.lang.NullPointerException
	at org.apache.tez.dag.app.DAGAppMaster.initiateStop(DAGAppMaster.java:2179)
	at org.apache.tez.dag.app.DAGAppMaster.serviceStop(DAGAppMaster.java:2195)
	at org.apache.hadoop.service.AbstractService.stop(AbstractService.java:221)
	at org.apache.hadoop.service.ServiceOperations.stop(ServiceOperations.java:52)
	at org.apache.hadoop.service.ServiceOperations.stopQuietly(ServiceOperations.java:80)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:171)
	at org.apache.tez.dag.app.DAGAppMaster$9.run(DAGAppMaster.java:2662)
	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:1657)
	at org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2659)
	at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2464)
2022-09-02 11:01:04,606 [ERROR] [main] |app.DAGAppMaster|: Error starting DAGAppMaster
java.lang.NumberFormatException: For input string: "30s"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Long.parseLong(Long.java:589)
	at java.lang.Long.parseLong(Long.java:631)
	at org.apache.hadoop.conf.Configuration.getLong(Configuration.java:1311)
	at org.apache.hadoop.hdfs.DFSClient$Conf.<init>(DFSClient.java:502)
	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:638)
	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
	at org.apache.tez.common.TezCommonUtils.getTezBaseStagingPath(TezCommonUtils.java:87)
	at org.apache.tez.common.TezCommonUtils.getTezSystemStagingPath(TezCommonUtils.java:146)
	at org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:492)
	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
	at org.apache.tez.dag.app.DAGAppMaster$9.run(DAGAppMaster.java:2662)
	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:1657)
	at org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2659)
	at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2464)
2022-09-02 11:01:04,608 [INFO] [Thread-2] |app.DAGAppMaster|: DAGAppMasterShutdownHook invoked

错误日志如图

所用版本为:

hadoop 3.3.1

hive 3.1.2

tez 0.9.2

解决方案如下

在hdfs-site.xml中新增配置

<property>
    <name>dfs.client.datanode-restart.timeout</name>
    <value>30</value>
</property>

问题解决

原因为Hadoop2和Hadoop3的兼容性问题

相关问题如下:

org.apache.ignite.IgniteException: For input string: "30s" in ignite hadoop execution - Stack Overflow

### 解决Hive中 `Unable to instantiate` 的异常问题 遇到 `FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient` 错误通常意味着 Hive 无法实例化会话元存储客户端。这可能是由于多种原因引起的,包括但不限于配置不正确、依赖库缺失或版本兼容性问题。 #### 配置调整 一种常见的解决方案是进入 `hive/conf` 文件夹并编辑 `hive-site.xml` 文件。具体操作为注释掉可能导致冲突的参数设置[^4]: ```xml <!-- <property> <name>hive.metastore.warehouse.dir</name> <value>/user/hive/warehouse</value> </property> --> ``` 另一种有效的方法是在 `hive-site.xml` 中添加特定属性来指定 Metastore URI: ```xml <property> <name>hive.metastore.uris</name> <value>thrift://hive服务器的IP地址:9083</value> </property> ``` 上述更改有助于确保 Hive 客户端能够正确连接到远程Metastore服务[^5]。 #### 数据库重置尝试 如果之前的操作未能解决问题,则可以考虑清理现有的 MySQL 元数据库 (metastore),然后通过命令 `schematool -initSchema -dbType mysql` 来重新初始化它。不过需要注意的是,在执行此操作前应备份现有数据以防意外丢失。 #### 版本一致性检查 确认所使用的 Hadoop 和 Hive 组件之间的版本相互匹配也很重要。不同版本之间可能存在API变化或其他差异,这些都可能引发此类错误。因此建议查阅官方文档以获取推荐搭配列表,并据此调整环境中的软件版本[^1]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值