Home Forums Hive / HCatalog HIVE java.io.IOException: Permission denied

This topic contains 7 replies, has 2 voices, and was last updated by  Kenny Zhang 11 months, 2 weeks ago.

  • Creator
    Topic
  • #41971

    afdha
    Member

    I have a problem to configuration hive

    this my error :
    Exception in thread “main” java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:1006)
    at java.io.File.createTempFile(File.java:1989)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:119)
    [1]+ Exit 1 nohup hive –service metastore > $HIVE_LOG_DIR/hive.out 2> $HIVE_LOG_DIR/hive.log

    can you help me ?
    plz

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘HIVE java.io.IOException: Permission denied’ is closed to new replies.

  • Author
    Replies
  • #43473

    Kenny Zhang
    Moderator

    Hi,

    Thanks for letting us know this works.

    Kenny

    Collapse
    #43156

    afdha
    Member

    thanks it works after reboot, hehe

    Collapse
    #42664

    Kenny Zhang
    Moderator

    Hi Afdha,

    Could you please make sure the following command is execute successfully?

    chown -R hive:hadoop /var/log/hive
    chmod -R 755 /var/log/hive

    This problem is related to the folder permission, simply copy the configuration file from sandbox will not help. Please let me know whether this helps.

    Thanks.
    Kenny

    Collapse
    #42650

    afdha
    Member

    Hi Kenny Zhang.

    The output just show it.
    but user root can run command “hive”.

    emt, can i copy configuration on sandbox into my server ?

    Collapse
    #42579

    Kenny Zhang
    Moderator

    Hi Afdha,

    From the error message, this means the hive client could not start due to it cannot create a log file in /var/log/hive.
    Could you please share the output of the following command?

    $ls -al /var/log/hive

    Kenny

    Collapse
    #42561

    afdha
    Member

    i just run “hive” command.

    my error log :
    nohup: ignoring input
    Exception in thread “main” java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:1006)
    at java.io.File.createTempFile(File.java:1989)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:119)
    /var/log/hive/hive.log (END)

    emm, can i clone hortonworks sandbox into real server ? i’m confuse at configuration.

    Collapse
    #42557

    Kenny Zhang
    Moderator

    Hi Geyolan,

    This permission issue means that you hive cannot create a temp file in your local fs. Could you please let me know what hive command you’re running and share the hive job log?

    Thanks,
    Kenny

    Collapse
Viewing 7 replies - 1 through 7 (of 7 total)