Notes below From: Raj Hadoop <hadoop...@yahoo.com<mailto:hadoop...@yahoo.com>> Reply-To: "u...@hive.apache.org<mailto:u...@hive.apache.org>" <u...@hive.apache.org<mailto:u...@hive.apache.org>>, Raj Hadoop <hadoop...@yahoo.com<mailto:hadoop...@yahoo.com>> Date: Tuesday, May 21, 2013 10:49 AM To: Dean Wampler <deanwamp...@gmail.com<mailto:deanwamp...@gmail.com>>, "u...@hive.apache.org<mailto:u...@hive.apache.org>" <u...@hive.apache.org<mailto:u...@hive.apache.org>> Cc: User <user@hadoop.apache.org<mailto:user@hadoop.apache.org>> Subject: Re: hive.metastore.warehouse.dir - Should it point to a physical directory
Ok.I got it. My questions - 1) Should a local physical directory be created before using this property? I created a directory in HDFS during Hive installation /user/hive/warehouse My hive-site.xml has the following property defined <property> <name>hive.metastore.warehouse.dir</name> <value>/user/hive/warehouse</value> <description>location of default database for the warehouse</description> </property> 2) Should a HDFS file directory be created from Hadoop before using this property? hdfs dfs -mkdir /user/hive/warehouse Change the owner:group to hive:hive From: Dean Wampler <deanwamp...@gmail.com<mailto:deanwamp...@gmail.com>> To: u...@hive.apache.org<mailto:u...@hive.apache.org>; Raj Hadoop <hadoop...@yahoo.com<mailto:hadoop...@yahoo.com>> Cc: User <user@hadoop.apache.org<mailto:user@hadoop.apache.org>> Sent: Tuesday, May 21, 2013 1:44 PM Subject: Re: hive.metastore.warehouse.dir - Should it point to a physical directory The name is misleading; this is the directory within HDFS where Hive stores the data, by default. (External tables can go elsewhere). It doesn't really have anything to do with the metastore. dean On Tue, May 21, 2013 at 12:42 PM, Raj Hadoop <hadoop...@yahoo.com<mailto:hadoop...@yahoo.com>> wrote: Can some one help me on this ? I am stuck installing and configuring Hive with Oracle. Your timely help is really aprreciated. From: Raj Hadoop <hadoop...@yahoo.com<mailto:hadoop...@yahoo.com>> To: Hive <u...@hive.apache.org<mailto:u...@hive.apache.org>>; User <user@hadoop.apache.org<mailto:user@hadoop.apache.org>> Sent: Tuesday, May 21, 2013 1:08 PM Subject: hive.metastore.warehouse.dir - Should it point to a physical directory Hi, I am configurinig Hive. I ahve a question on the property hive.metastore.warehouse.dir. Should this point to a physical directory. I am guessing it is a logical directory under Hadoop fs.default.name<http://fs.default.name/>. Please advise whether I need to create any directory for the variable hive.metastore.warehouse.dir Thanks, Raj -- Dean Wampler, Ph.D. @deanwampler http://polyglotprogramming.com/ CONFIDENTIALITY NOTICE ====================== This email message and any attachments are for the exclusive use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message along with any attachments, from your computer system. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.