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

hive CLI can't handle hadoop dfs command with space and quotes.

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0, 0.10.0, 0.13.1, 0.14.0, 1.1.0, 1.2.0
    • 3.0.0
    • CLI
    • Reviewed

    Description

      As design, hive could support hadoop dfs command in hive shell, like
      hive> dfs -mkdir /user/biadmin/mydir;

      but has different behavior with hadoop if the path contains space and quotes

      hive> dfs -mkdir "hello";
      drwxr-xr-x - biadmin supergroup 0 2013-04-23 09:40 /user/biadmin/"hello"

      hive> dfs -mkdir 'world';
      drwxr-xr-x - biadmin supergroup 0 2013-04-23 09:43 /user/biadmin/'world'

      hive> dfs -mkdir "bei jing";
      drwxr-xr-x - biadmin supergroup 0 2013-04-23 09:44 /user/biadmin/"bei
      drwxr-xr-x - biadmin supergroup 0 2013-04-23 09:44 /user/biadmin/jing"

      Attachments

        1. HIVE-4577.1.patch
          3 kB
          Bing Li
        2. HIVE-4577.2.patch
          4 kB
          Bing Li
        3. HIVE-4577.3.patch.txt
          4 kB
          Edward Capriolo
        4. HIVE-4577.4.patch
          4 kB
          Bing Li
        5. HIVE-4577.5.patch
          3 kB
          Bing Li
        6. HIVE-4577.6.patch
          4 kB
          Bing Li

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            libing Bing Li Assign to me
            libing Bing Li
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment