Wednesday, October 30, 2013

ERROR : Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses

ERROR exec.Task (SessionState.java:printError(427)) - Job Submission failed with exception 'java.io.IOException(Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.)


This error may occur when you are trying to run Hive Map-reduce job. The reason is HADOOP-MAPREDUCE-HOME not configured/set properly.

For solving this error,

export HADOOP_MAPRED_HOME=/usr/lib/hadoop-0.20-mapreduce
export HADOOP_HOME=/usr/lib/hadoop-0.20-mapreduce

add these two lines in

/etc/default/hadoop and  /etc/default/hive-server 


Restart  hadoop mapreduce service and run your hive query now  :)


No comments:

Post a Comment

Total Pageviews

Translate