Below is my shell script, which I am trying to execute using PLINK on MachineB from MachineA (Windows Machine).
#!/bin/bash export HIVE_OPTS="$HIVE_OPTS -hiveconf mapred.job.queue.name=hdmi-technology" hive -S -e 'SELECT count(*) from testingtable1' > attachment22.txt
I use PLINK to execute a shell script as shown below
C:\PLINK>plink uname@MachineB -m test.sh Using keyboard-interactive authentication. Password: Using keyboard-interactive authentication. Your Kerberos password will expire in 73 days.
And this is the error below that I always get whenever I try to run as shown above.
sh: HIVE_OPTS= -hiveconf mapred.job.queue.name=hdmi-technology: is not an identifier
Is there something wrong with my shell script? or some trailing spaces? I canβt figure it out. I run PLINK from the machine window
source share