hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From binhnt22 <>
Subject RE: Re: cannot start the thrift server
Date Wed, 11 Apr 2012 02:12:48 GMT
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