Reputation: 331
I want to Run hive query from external cluster like below.
ssh user@<ipaddress> hive -f <localfilepath>
It works successfully if we have file on the cluster but wont work for local file.
Is there way to achieve this ?
Upvotes: 0
Views: 293
Reputation: 1385
From the logical point of view, immediatly after the command "ssh user@" you are "inside" that host. So you can't see the files from external cluster.
You could do it in two steps:
push the file to cluser
execute it
Upvotes: 1