shell script for loading csv file into hive

 

<span style="font-size: medium;">My script is like this but i am not able to load the data successfully
#!/bin/bash</span><span style="font-size:12px;">
> bin/hive
> load data local inpath '/usr/local/hadoop_dir/hadoop/input/sample.txt'
> overwrite into table sample;
> exit;</span>

can anyone help me on this?

shankarpanda003's picture
Joined: Sep 4 2012 - 9:54pm
Last seen: 9 years 1 month ago

1 Answer:

Its solved. :)

shankarpanda003's picture
Joined: Sep 4 2012 - 9:54pm
Last seen: 9 years 1 month ago
Feedback