Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11864

If the specific location does not exist while creating table, tip information is ambiguous.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Cannot Reproduce
    • 0.13.1, 1.1.0
    • None
    • None

    Description

      If the specific location does not exist while creating table, tip information is ambiguous.

      > create external table exttbl_bad(id int, name string) row format delimited fields terminated by ',' stored as textfile location '/tmp/tmptbl';
      Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied. Principal [name=admin, type=USER] does not have following privileges on Object [type=DFS_URI, name=/tmp/tmptbl] for operation CREATETABLE : [SELECT, INSERT, DELETE, OBJECT OWNERSHIP] (state=42000,code=40000)

      The error message explain that permission to access the path is not satisfied, however, the path does not exist at all.

      So it should be reasonable to show message like "path does not exists".

      Attachments

        Activity

          People

            Unassigned Unassigned
            Hison Huang Hison Huang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: