Sqoop Configuration and Installation
Sqoop Configuration and Installation
13.cd sqoop
14. type ls
15. cd conf
16. type ls
17.u can see "sqoop-env-template.sh" file
copy that file to same location as sqoop-env.sh
sudo cp sqoop-env-template.sh sqoop-env.sh
18.open that created file
sudo nano sqoop-env.sh
19.under #set path to where bin/hadoop is avilable
you will have an export, remove the # sign infront of export
after = (set hadoop path)
for most of you it will be =/home/hduser/hadoop
20.under #set path to where hadoop-*-core.jar is avilable
you will have an export, remove the # sign infront of export
after = (set hadoop path)
for most of you it will be =/home/hduser/hadoop
21.save and close the file
1.cd
2.cd hadoop
3.ls
4.cd etc
5.cd hadoop
6.ls
7.sudo nano mapred-site.xml
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:54311</value>
</property>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<property>
<name>mapreduce.admin.user.env</name>
<value>HADOOP_MAPRED_HOME=/home/hduser/hadoop</value>
</property>
<property>
<name>yarn.app.mapreduce.am.env</name>
<value>HADOOP_MAPRED_HOME=/home/hduser/hadoop</value>
</property>
</configuration>
a file will be opened delete the already existing configuration part if any
copy the below code and paste there
<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
</configuration>