Hive
  1. Hive
  2. HIVE-344

Fix the Hive CLI to run on cygwin under windows

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3.0
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      windows xp

    • Hadoop Flags:
      Reviewed
    • Release Note:
      * Fixes for running hive under cygwin

      Description

      Yes, I am guilty as charged, I don't use mac like the rest of you

      The Hive CLI currently doesn't work with cygwin under windows, this is due to the dual path model that cygwin employs (there are file paths relative to the cygwin virtual root, and file paths relative to the windows root)

      Since Sun's JDK is installed under the windows environment, if the paths are not converted to windows format before being passed along then java will be at a loss to where the files are. The solution is to use the cygpath command to convert the paths to windows format before passing along to java world.

      I have a fix for this already, still doing some further testing (to make sure it works under both unix and windows environments), then I will submit patch to this bug (should submit before end of this week).

      Cheers,

      – amr

      1. HIVE-344-v2.patch
        3 kB
        Amr Awadallah
      2. HIVE-344.patch
        2 kB
        Amr Awadallah

        Activity

        Amr Awadallah created issue -
        Amr Awadallah made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Release Note * Fixes for running hive under cygwin
        Affects Version/s 0.3.0 [ 12313637 ]
        Fix Version/s 0.3.0 [ 12313637 ]
        Amr Awadallah made changes -
        Attachment HIVE-344.patch [ 12407452 ]
        Ashish Thusoo made changes -
        Assignee Amr Awadallah [ aaa ]
        Johan Oskarsson made changes -
        Fix Version/s 0.3.1 [ 12313845 ]
        Fix Version/s 0.3.0 [ 12313637 ]
        Johan Oskarsson made changes -
        Fix Version/s 0.3.2 [ 12314124 ]
        Fix Version/s 0.3.1 [ 12313845 ]
        Amr Awadallah made changes -
        Attachment HIVE-344-v2.patch [ 12414326 ]
        Johan Oskarsson made changes -
        Fix Version/s 0.3.1 [ 12313845 ]
        Fix Version/s 0.3.2 [ 12314124 ]
        Ashish Thusoo made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.4.0 [ 12313714 ]
        Fix Version/s 0.3.1 [ 12313845 ]
        Resolution Fixed [ 1 ]
        Rim Moussa made changes -
        Environment windows xp
        Component/s Clients [ 12312587 ]
        Carl Steinbach made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Amr Awadallah
            Reporter:
            Amr Awadallah
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development