I want use shell execute sqoop(1.4.5) command.
shell: sqoop_cmd="sqoop import --connect jdbc:mysql://xx.x.xxx.xxx:3306/test --username test --password datagateway --query 'select t.name from table_name t where date(hrc.gmt_modified) = date_sub(curdate(),interval 1 day) AND $CONDITIONS' --target-dir /output -m 1 --append"
result=$sqoop_cmd 2>&1 | grep -c "successfully"
error: WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
But I updated --query to --table and remove ' AND $CONDITIONS' param try again, The sqoop command result is successfull. I think the question about '$', but I try '\$CONDITIONS', "'$CONDITIONS'", it's unsuccessfull.
please help me, thank you so much!