Re: HDFS Overwriting undo

2014-06-02 Thread VinodKasam
Hi, The command to check if the file exists recursively is hadoop fs -lsr Vinod On Mon, Jun 2, 2014 at 12:40 AM, Amjad ALSHABANI wrote: > Hello Ashish, > > Unfortunately,I got this error when running the commande you provided: > > pns@app11:~$ hadoop fs -ls -lrt /user/hive/warehouse > -ls: Il

Re: HDFS Overwriting undo

2014-06-02 Thread Ashish Garg
hive -e "CREATE DATABASE my_stats LOCATION 'hdfs://:9000 */user/hive/warehouse/*mystats.db'" This command should be like as follows: hive -e 'Create Database my_stats' you do not need to specify the location because the default location of database is the warehouse directory. On Mon, Jun 2,

Re: HDFS Overwriting undo

2014-06-02 Thread Amjad ALSHABANI
I think it is worth to mention that I tried doing this before on locally deployed HDFS and it went well. So my question now, what has gone wrong with creation database with given location?? thanx for your rplies Amjad On Mon, Jun 2, 2014 at 9:50 AM, Siddharth Tiwari wrote: > Sorry Amzad, I

Re: HDFS Overwriting undo

2014-06-02 Thread Siddharth Tiwari
Sorry Amzad, I am afraid u can't Sent from my iPhone > On May 30, 2014, at 3:12 AM, "Amjad ALSHABANI" wrote: > > Hello Everybody, > > I know that this question may concern Hadoop list but i ve made this mistake > when using Hive. > I created new database giving the location on HDFS but i fo

Re: HDFS Overwriting undo

2014-06-02 Thread Amjad ALSHABANI
Hello Ashish, Unfortunately,I got this error when running the commande you provided: pns@app11:~$ hadoop fs -ls -lrt /user/hive/warehouse -ls: Illegal option -lrt Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [ ...] On Sun, Jun 1, 2014 at 8:17 PM, Ashish Garg wrote: > Try this comman

Re: HDFS Overwriting undo

2014-06-01 Thread Ashish Garg
Try this command: hadoop fs -ls -lrt /user/hive/warehouse/ Regards. On Fri, May 30, 2014 at 6:10 AM, Amjad ALSHABANI wrote: > Hello Everybody, > > I know that this question may concern Hadoop list but i ve made this > mistake when using Hive. > I created new database giving the location on HD