You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/05/24 11:18:00 UTC

[jira] [Commented] (AMBARI-23943) Hiveserver2 fails to start on viewFS enabled cluster: {hive_server2_zookeeper_namespace} is not ready yet

    [ https://issues.apache.org/jira/browse/AMBARI-23943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16488812#comment-16488812 ] 

Hudson commented on AMBARI-23943:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9329 (See [https://builds.apache.org/job/Ambari-trunk-Commit/9329/])
AMBARI-23943. Hiveserver2 fails to start on viewFS enabled cluster: (aonishuk: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=66badb99b71c0c0d89b6f28d7893cab1c009dd33])
* (edit) ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
* (edit) ambari-common/src/main/python/resource_management/libraries/providers/hdfs_resource.py
* (edit) ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/metainfo.xml
* (edit) ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py
* (edit) ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py
* (edit) contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Runner.java
* (edit) ambari-agent/src/test/python/ambari_agent/dummy_files/alert_definitions.json
* (edit) ambari-server/src/main/resources/common-services/SPARK/1.2.1/package/scripts/livy_server.py
* (edit) ambari-server/src/main/resources/common-services/SPARK2/2.0.0/package/scripts/livy2_server.py
* (edit) ambari-server/src/main/resources/stack-hooks/before-START/files/fast-hdfs-resource.jar
* (edit) ambari-server/src/main/resources/stack-hooks/before-START/scripts/shared_initialization.py
* (edit) contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Resource.java


> Hiveserver2 fails to start on viewFS enabled cluster: {hive_server2_zookeeper_namespace} is not ready yet
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-23943
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23943
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.0
>
>         Attachments: AMBARI-23943.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
>   * Tried to deploy a cluster with viewFS enabled via blueprint
>   * HiveServer2 is failing to start with below error 
>     
>         
>     Traceback (most recent call last):
>       File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_server.py", line 137, in 
>         HiveServer().execute()
>       File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, in execute
>         method(env)
>       File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_server.py", line 53, in start
>         hive_service('hiveserver2', action = 'start', upgrade_type=upgrade_type)
>       File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_service.py", line 102, in hive_service
>         wait_for_znode()
>       File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/decorator.py", line 62, in wrapper
>         return function(*args, **kwargs)
>       File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_service.py", line 191, in wait_for_znode
>         raise Fail(format("ZooKeeper node /{hive_server2_zookeeper_namespace} is not ready yet"))
>     resource_management.core.exceptions.Fail: ZooKeeper node /hiveserver2 is not ready yet
>     
> out log has a reference to hdfs:// Filesystem
>     
>         
>     2018-05-17 23:54:17,398 - Skipping fs root check as fs_root does not start with hdfs://
>     2018-05-17 23:54:17,399 - Execute['/var/lib/ambari-agent/tmp/start_hiveserver2_script /grid/0/log/hive/hive-server2.out /grid/0/log/hive/hive-server2.err /var/run/hive/hive-server.pid /usr/hdp/current/hive-server2/conf/ /grid/0/log/hive'] {'environment': {'HIVE_BIN': 'hive', 'JAVA_HOME': u'/usr/lib/jvm/java-openjdk', 'HADOOP_HOME': u'/usr/hdp/current/hadoop-client'}, 'not_if': 'ls /var/run/hive/hive-server.pid >/dev/null 2>&1 && ps -p  >/dev/null 2>&1', 'user': 'hive', 'path': [u'/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/ambari-agent:/usr/hdp/current/hive-server2/bin:/usr/hdp/3.0.0.0-1345/hadoop/bin']}
>     2018-05-17 23:54:17,507 - Execute['/usr/lib/jvm/java-openjdk/bin/java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/hdp/current/hive-server2/lib/mysql-connector-java.jar org.apache.ambari.server.DBConnectionVerification 'jdbc:mysql://ctr-e138-1518143905142-317960-01-000006.hwx.site/hivedb?createDatabaseIfNotExist=true' hiveuser [PROTECTED] com.mysql.jdbc.Driver'] {'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 5, 'try_sleep': 10}
>     2018-05-17 23:54:18,156 - call['/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server ctr-e138-1518143905142-317960-01-000005.hwx.site:2181,ctr-e138-1518143905142-317960-01-000006.hwx.site:2181,ctr-e138-1518143905142-317960-01-000007.hwx.site:2181 ls /hiveserver2 | grep '\[serverUri=''] {}
>     2018-05-17 23:54:19,032 - call returned (1, 'Node does not exist: /hiveserver2')
>     2018-05-17 23:54:19,033 - Will retry 29 time(s), caught exception: ZooKeeper node /hiveserver2 is not ready yet. Sleeping for 5 sec(s)
>     2018-05-17 23:54:24,038 - call['/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server ctr-e138-1518143905142-317960-01-000005.hwx.site:2181,ctr-e138-1518143905142-317960-01-000006.hwx.site:2181,ctr-e138-1518143905142-317960-01-000007.hwx.site:2181 ls /hiveserver2 | grep '\[serverUri=''] {}
>     2018-05-17 23:54:24,842 - call returned (1, 'Node does not exist: /hiveserver2')
>     



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)