【发布时间】:2018-10-28 21:34:47
【问题描述】:
我正在尝试在我的系统中启动配置单元服务,但它失败了。 Hive server2 和 Hive Metastore 服务已启动。
[root@master conf]# sudo service hive-server start 启动失败 蜂巢服务器。返回值:1 [失败]
下面是hive-site.xml的配置
<!-- hive properties -->
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://master/metastore</value>
<description>the URL of the MySQL database</description>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>hive</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>mypassword</value>
</property>
<property>
<name>datanucleus.autoCreateSchema</name>
<value>false</value>
</property>
<property>
<name>datanucleus.fixedDatastore</name>
<value>true</value>
</property>
<property>
<name>hive.metastore.uris</name>
<value>thrift://master:9083</value>
<description>IP address (or fully-qualified domain name) and port of the metastore host</description>
</property>
<property>
<name>hive.support.concurrency</name>
<value>true</value>
<description>support concu</description>
</property>
<property>
<name>hive.enforce.bucketing</name>
<value>true</value>
<description>enforce bukketing</description>
</property>
<property>
<name>hive.exec.dynamic.partition.mode</name>
<value>nonstrict</value>
<description>enforce bukceting</description>
</property>
<property>
<name>hive.txn.manager</name>
<value>org.apache.hadoop.hive.ql.lockmgr.DbTxnManager</value>
<description>transaction manager</description>
</property>
<property>
<name>hive.compactor.initiator.on</name>
<value>true</value>
<description>compactor</description>
</property>
<property>
<name>hive.compactor.worker.threads</name>
<value>1</value>
<description>worker thread</description>
</property>
以下是错误日志:
[root@master hive]# cat hive-server.out
Starting Hive Thrift Server
Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.hive.service.HiveServer
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:274)
at org.apache.hadoop.util.RunJar.run(RunJar.java:214)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
thrift 服务器有问题吗?
请帮我解决这个问题
【问题讨论】: