ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayush Luniya (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-18134) Hive metastore stop failed
Date Tue, 16 Aug 2016 17:02:20 GMT

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

Jayush Luniya commented on AMBARI-18134:
----------------------------------------

[~shreyabhatm@gmail.com]
Can you assign the JIRA to the developer who is working on this?


> Hive metastore stop failed
> --------------------------
>
>                 Key: AMBARI-18134
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18134
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Shreya Bhat
>            Priority: Blocker
>              Labels: system_test
>             Fix For: 2.4.0
>
>
> Hive metastore start is failing after install with :
> {code}
>  "Traceback (most recent call last):\n  File \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\",
line 254, in <module>\n    HiveMetastore().execute()\n  File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
line 280, in execute\n    method(env)\n  File \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\",
line 59, in start\n    self.configure(env)\n  File \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\",
line 73, in configure\n    hive(name = 'metastore')\n  File \"/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py\",
line 89, in thunk\n    return fn(*args, **kwargs)\n  File \"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py\",
line 320, in hive\n    user = params.hive_user\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\",
line 155, in __init__\n    self.env.run()\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\",
line 160, in run\n    self.run_action(resource, action)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\",
line 124, in run_action\n    provider_action()\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py\",
line 273, in action_run\n    tries=self.resource.tries, try_sleep=self.resource.try_sleep)\n
 File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 71, in
inner\n    result = function(command, **kwargs)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\",
line 93, in checked_call\n    tries=tries, try_sleep=try_sleep)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\",
line 141, in _call_wrapper\n    result = _call(command, **kwargs_copy)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\",
line 294, in _call\n    raise Fail(err_msg)\nresource_management.core.exceptions.Fail: Execution
of 'export HIVE_CONF_DIR=/usr/hdp/current/hive-metastore/conf/conf.server ; /usr/hdp/current/hive-server2-hive2/bin/schematool
-initSchema -dbType mysql -userName hive -passWord [PROTECTED] -verbose' returned 1. SLF4J:
Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/grid/0/hdp/2.5.0.0-1189/hive2/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J:
Found binding in [jar:file:/grid/0/hdp/2.5.0.0-1189/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J:
See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding
is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\nMetastore connection URL:\t jdbc:mysql://nat-s11-4-sies-ambari-hosts-6-3.openstacklocal/hive\nMetastore
Connection Driver :\t com.mysql.jdbc.Driver\nMetastore connection User:\t hive\norg.apache.hadoop.hive.metastore.HiveMetaException:
Failed to load driver\nUnderlying cause: java.lang.ClassNotFoundException : com.mysql.jdbc.Driver\norg.apache.hadoop.hive.metastore.HiveMetaException:
Failed to load driver\n\tat org.apache.hive.beeline.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:82)\n\tat
org.apache.hive.beeline.HiveSchemaTool.getConnectionToMetastore(HiveSchemaTool.java:133)\n\tat
org.apache.hive.beeline.HiveSchemaTool.testConnectionToMetastore(HiveSchemaTool.java:187)\n\tat
org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)\n\tat org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:277)\n\tat
org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:526)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat
java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.apache.hadoop.util.RunJar.run(RunJar.java:233)\n\tat
org.apache.hadoop.util.RunJar.main(RunJar.java:148)\nCaused by: java.lang.ClassNotFoundException:
com.mysql.jdbc.Driver\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:381)\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:424)\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)\n\tat
java.lang.ClassLoader.loadClass(ClassLoader.java:357)\n\tat java.lang.Class.forName0(Native
Method)\n\tat java.lang.Class.forName(Class.java:264)\n\tat org.apache.hive.beeline.HiveSchemaHelper.getConnectionToMetastore(HiveSchemaHelper.java:73)\n\t...
11 more\n*** schemaTool failed ***"
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message