Sqoop

/usr/local/sqoop/bin/sqoop import –connect jdbc:mysql://IP/DBname–username user –password pass -table tablename –target-dir /root/filename¬† –direct –null-string ” ¬†–null-non-string ”

export HADOOP_MAPRED_HOME=/home/hadoop-user/hadoop-1.2.1
export HADOOP_COMMON_HOME=/home/hadoop-user/hadoop-1.2.1

–¬†

~/hadoop-1.2.1/bin/hadoop job -kill job_201404031318_0001

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>