shell script for loading csv file into hive

0

 

<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: 5 years 9 months ago

1 Answer:

0

Its solved. :)

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