hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sumit khanna <>
Subject Hive on local client gets connection refused error when trying to run a job on ec2 cluster
Date Fri, 14 Aug 2009 17:26:31 GMT
I have been using the following tutorial to run hive queries on amazon ec2 hadoop cluster 

I can ssh into the master node with the following command 
ssh -i /home/sumit/.ec2/id_rsa-gsg-keypair -D 2600

But when i run hive (even as a root user) and set all the parameters as mentioned in the tutorial
above, hive cant connect to the amzon ec2 cluster and i get a connection refused error 

Could someone help me in this 

Thanks a lot 

Joydeep mentioned that it might have something to do with my config settings so i am attaching
my hive-site.xml file too?

here is my error log

FAILED: Unknown exception : Call to
failed on local exception: Connection refused
09/08/13 13:41:54 ERROR ql.Driver: FAILED: Unknown exception : Call to failed on local exception:
Connection refused
java.lang.RuntimeException: Call to
failed on local exception: Connection refused
at org.apache.hadoop.hive.ql.Context.getMRScratchDir(
at org.apache.hadoop.hive.ql.Context.getMRTmpFileURI(
at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(
at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(
at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(
at org.apache.hadoop.hive.ql.Driver.compile(
at org.apache.hadoop.hive.cli.CliDriver.processCmd(
at org.apache.hadoop.hive.cli.CliDriver.processLine(
at org.apache.hadoop.hive.cli.CliDriver.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.hadoop.util.RunJar.main(
at org.apache.hadoop.mapred.JobShell.main(
Caused by: Call to
failed on local exception: Connection refused
at org.apache.hadoop.ipc.Client.wrapException(
at org.apache.hadoop.ipc.RPC$Invoker.invoke(
at $Proxy0.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(
at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(
at org.apache.hadoop.hdfs.DFSClient.<init>(
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(
at org.apache.hadoop.fs.FileSystem.createFileSystem(
at org.apache.hadoop.fs.FileSystem.access$200(
at org.apache.hadoop.fs.FileSystem$Cache.get(
at org.apache.hadoop.fs.FileSystem.get(
at org.apache.hadoop.fs.Path.getFileSystem(
at org.apache.hadoop.hive.ql.Context.makeMRScratchDir(
at org.apache.hadoop.hive.ql.Context.getMRScratchDir(
... 18 more
Caused by: Connection refused
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(
at org.apache.hadoop.ipc.Client$Connection.access$1700(
at org.apache.hadoop.ipc.Client.getConnection(

Would be glad if someone could suggest a solution?
View raw message