You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Valeriy Trofimov <va...@gmail.com> on 2019/07/05 21:45:30 UTC

Cannot create directories in tutorial

hi All,

I'm new to Hive. I am doing this tutorial:
  https://cwiki.apache.org/confluence/display/Hive/GettingStarted

And I've got an error at this step:

  $ $HADOOP_HOME/bin/hadoop fs -mkdir       /user/hive/warehouse

The error is:

mkdir: `/user/hive/warehouse': No such file or directory

Do you know how to solve this issue?

Googling this error shows only 4 results all of which are in foreign
languages:
https://www.google.com/search?client=firefox-b-1-d&q=%22mkdir%3A+%60%2Fuser%2Fhive%2Fwarehouse%27%3A+No+such+file+or+directory%22

Thanks,
Val

Re: Cannot create directories in tutorial

Posted by Chris Mawata <ch...@gmail.com>.
You probably do not have the parent directories.
Try

$HADOOP_HOME/bin/hadoop fs -mkdir -p /user/hive/warehouse

(the -p is so that parent directories also get created)

Chris


On Fri, Jul 5, 2019 at 5:45 PM Valeriy Trofimov <va...@gmail.com>
wrote:

> hi All,
>
> I'm new to Hive. I am doing this tutorial:
>   https://cwiki.apache.org/confluence/display/Hive/GettingStarted
>
> And I've got an error at this step:
>
>   $ $HADOOP_HOME/bin/hadoop fs -mkdir       /user/hive/warehouse
>
> The error is:
>
> mkdir: `/user/hive/warehouse': No such file or directory
>
> Do you know how to solve this issue?
>
> Googling this error shows only 4 results all of which are in foreign
> languages:
> https://www.google.com/search?client=firefox-b-1-d&q=%22mkdir%3A+%60%2Fuser%2Fhive%2Fwarehouse%27%3A+No+such+file+or+directory%22
>
> Thanks,
> Val
>

RE: Cannot create directories in tutorial

Posted by Nandini Mankale <nm...@yahoo.com>.
Hi,

Are you on Windows or Linux?



Sent from Mail for Windows 10

From: Valeriy Trofimov
Sent: 06 July 2019 03:16
To: user@hive.apache.org
Subject: Cannot create directories in tutorial

hi All,

I'm new to Hive. I am doing this tutorial:
  https://cwiki.apache.org/confluence/display/Hive/GettingStarted

And I've got an error at this step: 
  $ $HADOOP_HOME/bin/hadoop fs -mkdir       /user/hive/warehouse
The error is:

mkdir: `/user/hive/warehouse': No such file or directory

Do you know how to solve this issue? 

Googling this error shows only 4 results all of which are in foreign languages: https://www.google.com/search?client=firefox-b-1-d&q=%22mkdir%3A+%60%2Fuser%2Fhive%2Fwarehouse%27%3A+No+such+file+or+directory%22

Thanks,
Val