hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ylyy-1985"<>
Subject 回复: RE: Re: cannot start the thrift server
Date Wed, 11 Apr 2012 02:29:20 GMT
yeah, great,thanks binhnt22. what a fool I am. Hah!! but I get this then. 

Unable to create log directory /tmp/Administrator
2012-04-11 10:23:15,359 ERROR [main] session.SessionState$LogHelper(277): Unable to create
log directory /tmp/Administrator
Exception in thread "main" java.sql.SQLException: Could not establish connecton to jdbc:hive:// No route to host: connect
 at org.apache.hadoop.hive.jdbc.HiveConnection.<init>(

here I use XP as a host machine, and have a virtual machine in VMware  (IP:
inside XP, and I think the port is 10000, right? I see the default username and password is
"APP" and "mine", so I use this to form a connection:
 Connection con = DriverManager.getConnection("jdbc:hive://",
"APP", "mine");



发送时间:2012-04-11 10:13
主题:RE: Re: cannot start the thrift server

Hi ylyy
You should add hadoop-core-*.jar file in hadoop distribution directory into your project
Best regards
Nguyen Thanh Binh (Mr)

From: ylyy-1985 [] 
Sent: Wednesday, April 11, 2012 9:04 AM
To: user
Subject: 回复: Re: cannot start the thrift server
thanks Bhavesh, :) but how can I confirm that the server is running? I try to access IP:10000
but without success. 

however I try to ignore this and write my client code to try to connect to hive,but error
codes are printed as follows...

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
 at org.apache.hadoop.hive.jdbc.HiveConnection.<init>(
 at org.apache.hadoop.hive.jdbc.HiveDriver.connect(
 at java.sql.DriverManager.getConnection(Unknown Source)
 at java.sql.DriverManager.getConnection(Unknown Source)
 at org.apache.hadoop.hive.wyl.HiveTest.main(
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration
 at$ Source)
 at Method)
 at Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 ... 5 more

I add all the libraries in hive to eclipse project. it seems to miss some configuration files,
but I don't know what it is. Can you help me?




发件人:Bhavesh Shah
发送时间:2012-04-10 20:39
主题:Re: cannot start the thrift server

[root@localhost hive]# hive --service hiveserver
Starting Hive Thrift Server
After starting Hive Thrift Server nothing get printed on console. This means your server get
Now you just run your JDBC program and let us know whether it runs or not.

Bhavesh Shah

On Tue, Apr 10, 2012 at 6:03 PM, ylyy-1985 <> wrote:
hi all,

I do feel frustrated when starting the thrift server. I tried different version of hadoop(1.0.1
and 0.20.2), but when I tried 'hive --service hiveserver', the server hung there and printed
the following info:

[root@localhost hive]# hive --service hiveserver
Starting Hive Thrift Server
12/04/10 20:22:50 INFO service.HiveServer: Starting hive server on port 10000

and I wait long but nothing happened. pls help, I just want to start the server and use jdbc
to connect to hive.

thanks in advanced.


View raw message