Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-141

drop database fails in unsecure mode with permission denied error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.2
    • None
    • None
    • None

    Description

      hcat user is the user hcat server is running as. The db dir got created using that username instead of the user who invoked the command. But the 'drop database' command still fails.

      $ hadoop fs -ls /user/hortonth/dbdir/|grep testdb
      Warning: $HADOOP_HOME is deprecated.
      
      drwx------   - hcat supergroup          0 2011-10-24 20:58 /user/hortonth/dbdir/testdb.db
      
      $ hcat    -e 'drop database testdb;'
      Hive history file=/tmp/hortonth/hive_job_log_hortonth_201110242105_891466409.txt
      FAILED: Error in semantic analysis: org.apache.hcatalog.common.HCatException : 3000 : Permission denied
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thejas Thejas Nair
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: