Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Sqoop using Yarn Distributed Shell

Sqoop using Yarn Distributed Shell


I am trying to execute sqoop using Yarn Distributed Shell. I am keeping a sqoop script inside a shell called and executing same by Yarn Distributed Shell. However I am getting below error while executing same. line 5: sqoop: command not found.

{Note: I am executing the script in datanode where sqoop client is there and same sqoop command is running fine while executing from command line or inside a shell script.}

Below command is used while running sqoop script using yarn distributed shell.

hadoop jar /usr/hdp/ -shell_script "/home/new/yarn_ds/" -debug -jar /usr/hdp/ -num_containers 30 -container_memory 350 -master_memory 350 -queue default

Don't have an account?
Coming from Hortonworks? Activate your account here