In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the use of hive-service hiveserver command to start hiveserver errors how to do, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
An error occurred while starting hiveserver using the hive-- service hiveserver command, hive version 1.2.0, the error message is as follows:
-bash-4.1$ hive-- service hiveserver-p 10002 &
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:270)
At org.apache.hadoop.util.RunJar.run (RunJar.java:214)
At org.apache.hadoop.util.RunJar.main (RunJar.java:136)
Hiveserver has been replaced by hiveserver2. For more information, please see:
Https://cwiki.apache.org/confluence/display/Hive/HiveServer
You can use the $HIVE_HOME/bin/hiveserver2 or $HIVE_HOME/bin/hive-- service hiveserver2 command to start HiveServer2
There are two differences between hiveserver and hiveserver2 in using JDBC connections:
1. Driver class: org.apache.hadoop.hive.jdbc.HiveDriver-- > org.apache.hive.jdbc.HiveDriver
2.URL:jdbc:hive://localhost:10000/default-- > jdbc:hive2://localhost:10000/default
In addition, when using hive jdbc, you need to import hive's jdbc driver package. If you use Maven, add dependencies.
Org.apache.hive
Hive-jdbc
1.2.0
Thank you for reading this article carefully. I hope the article "what to do when starting hiveserver using hive-service hiveserver command" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.