NoRouteToHostException

NoRouteToHostException
0.0 0

#1

Hello team,

There is a NoRouteToHostException all the time on one particular node wn06.itversity.com
Could you please resolve this.


Sign up for our state of the art Big Data cluster for hands on practice as developer. Cluster have Hadoop, Spark, Hive, Sqoop, Kafka and more.



#2

When are you getting this error?


#3

While running a sqoop import.


#4

Can you paste the command here?


#5

Sure,

sqoop import-all-tables --connect 'jdbc:mysql://nn01.itversity.com:3306/retail_db' \
--username=retail_dba \
--password=itversity \
-m 8 \
--hive-import \
--hive-database 'snehaananthan_retail_db_txt' \
--create-hive-table \
--fields-terminated-by '|' \
--outdir 'java'

#6

That exception was due to file is already loaded to hive.

I followed the below steps it is working fine.

Delete the existing HDFS directory - hadoop fs -rm -r /user/snehaananthan/categories

Created a new table in hive - snehaananthan_retail_db_txt1

And then sqoop command, it is loading fine. Please find the screenshot for reference.

sqoop import-all-tables --connect 'jdbc:mysql://nn01.itversity.com:3306/retail_db' --username=retail_dba --password=itversity -m 8 --hive-import --hive-database 'snehaananthan_retail_db_txt1' --create-hive-table --fields-terminated-by '|' --outdir 'java'