Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive, mail # user - what changes required in hive conf xml when working with hive jdbc


Copy link to this message
-
Re: what changes required in hive conf xml when working with hive jdbc
shashwat shriparv 2011-11-24, 11:58
https://cwiki.apache.org/confluence/display/Hive/HiveClient

https://cwiki.apache.org/confluence/display/Hive/HiveJDBCInterface

https://cwiki.apache.org/confluence/display/Hive/Home

On Thu, Nov 24, 2011 at 3:37 PM, Alok Kumar <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> Do I need to make any change in hive configuration file when working with
> hive-jdbc?
>
> I'm trying to configure Hive Jdbc following this link
> https://cwiki.apache.org/confluence/display/Hive/HiveClient.<https://cwiki.apache.org/confluence/display/Hive/HiveClient>
>
> hive is up n running. I'm able to create table (or) execute queries at
> $hive>
>
> jps returns :
> user@ubuntu:~$ jps
> 14202 JobTracker
> 14624 HMaster
> 16137 JUnitTestRunner
> 13809 DataNode
> 14864 RunJar
> 16392 Jps
> 15414 HiveJdbcClient
> 14077 SecondaryNameNode
> 13573 NameNode
> 14441 TaskTracker
> 16011 Launcher
> 15251 RunJar
> 15161 Main
>
> I've run Hive server as
> $HIVE_HOME: bin/hive --service hiveserver
> Starting Hive Thrift Server
> WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please
> use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties
> files.
>
> (Not sure if hive-server is running!)
>
> and run  "$ java -cp $CLASSPATH HiveJdbcClient" for hive client from this
> https://cwiki.apache.org/confluence/display/Hive/HiveClient.
> I've set $CLASSPATH like
> (export
> CLASSPATH=$CLASSPATH:.:$HIVE_HOME/lib/*:$HADOOP_HOME/hadoop-0.20.2-core.jar)
> after doing this "$ java -cp $CLASSPATH HiveJdbcClient", it just stuck
> there!!
> It should create a table "testHiveDriverTable" in hive, but "show tables;"
> on $hive returns no such table.
>
> Please help.. any1 working with Hive Jdbc, am I missing any
> configuration....?
>
> Regards,
> Alok
>
>
--
Shashwat Shriparv
09900059620
09663531241

<iframe src="
http://rcm.amazon.com/e/cm?t=shriparv-20&o=1&p=48&l=ur1&category=kindlerotating&f=ifr"
width="728" height="90" scrolling="no" border="0" marginwidth="0"
style="border:none;" frameborder="0"></iframe>