You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Amr Awadallah (JIRA)" <ji...@apache.org> on 2009/03/12 01:45:51 UTC

[jira] Created: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Fix the Hive CLI to run on cygwin under windows
-----------------------------------------------

                 Key: HIVE-344
                 URL: https://issues.apache.org/jira/browse/HIVE-344
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Clients
            Reporter: Amr Awadallah


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Thusoo updated HIVE-344:
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.3.1)
                   0.4.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

committed. Thanks Amr!!

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.4.0
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Amr Awadallah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amr Awadallah updated HIVE-344:
-------------------------------

        Fix Version/s: 0.3.0
    Affects Version/s: 0.3.0
         Release Note: * Fixes for running hive under cygwin
               Status: Patch Available  (was: Open)


I upgraded the fix to work with Hive 0.3. Would be great if a couple of folks can try this under cygwin and let me know if it works fine. It shouldn't affect non-windows installations, and for windows installations it will change the relevant paths/dirs using  cygpath (I added the fix to all services: cli.sh, hwi.sh, hiveserver.sh, and lineage.sh)

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>             Fix For: 0.3.0
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Johan Oskarsson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Oskarsson updated HIVE-344:
---------------------------------

    Fix Version/s:     (was: 0.3.2)
                   0.3.1

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740704#action_12740704 ] 

Ashish Thusoo commented on HIVE-344:
------------------------------------

Got it working. Looks all good to me.

+1

Will  checkin once the unit tests pass.


> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Prasad Chakka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740730#action_12740730 ] 

Prasad Chakka commented on HIVE-344:
------------------------------------

what was the problem?

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.4.0
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Amr Awadallah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amr Awadallah updated HIVE-344:
-------------------------------

    Attachment: HIVE-344-v2.patch

@Ashish

Can't believe it has been two months already, but please find a new patch attached (HIVE-344-v2.patch). 

I think I tracked down all places where AUX_PARAM and AUX_CLASSPATH get set. 

Please give a try and let me know.

Cheers,

-- amr


> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.2
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740106#action_12740106 ] 

Ashish Thusoo commented on HIVE-344:
------------------------------------

The first tests seem to be ok. Will do a bit more today and checkin if it works. I have one question though about the patch. The cygpath thingy is done in the cli.sh and lineage.sh files after HIVE_LIB is used. Should it not be before HIVE_LIB is used?

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Rim Moussa (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rim Moussa updated HIVE-344:
----------------------------

    Environment: windows xp
    Component/s:     (was: Clients)

Hi
I've installed hadoop-0.19.2 and hive under cygwin
am trying to follow the tutorial http://wiki.apache.org/hadoop/Hive/GettingStarted#Downloading_and_building
everything is working fine in the tutorial until I tried to execute an sql stmt 
after performing following settings
hive>SET mapred.job.tracker=myhost.mycompany.com:50030;
hive>SET -v ;
then I get "Number of reduce tasks is set to 0 since there's no reduce operator"
first does the patch apply to this error
am a new to linux, how to apply the patch
isn't worth to work with co-linux?
thankx

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>         Environment: windows xp
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.4.0
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740687#action_12740687 ] 

Ashish Thusoo commented on HIVE-344:
------------------------------------

I am having problems with show tables.

hive> show tables;
FAILED: Error in metadata: javax.jdo.JDODataStoreException: Exception thrown performing schema operation : Add classes to Catalog "", Schema "APP"
NestedThrowables:
java.sql.SQLNonTransientConnectionException: No current connection.
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

Prasad can you comment on this?


> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709930#action_12709930 ] 

Ashish Thusoo commented on HIVE-344:
------------------------------------

I tried this but it does not seem to work with auxilary jars. I get the following error

bash-3.2$ hive/bin/hive
java.net.URISyntaxException: Illegal character in scheme name at index 4: file;c:/Users/Ashish/dev/hive/hive/auxlib/fbhive_hooks.jar

AUX_PARAM has URIs in it so cygpath will probably cause problems there. The cygpath code for AUX_PARAMS needs to go at all the places where aux params are getting created from file names as opposed to at the end. I think that should fix this issue.



> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735725#action_12735725 ] 

Ashish Thusoo commented on HIVE-344:
------------------------------------

Thanks Amr. Will try it out today.


> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Johan Oskarsson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Oskarsson updated HIVE-344:
---------------------------------

    Fix Version/s:     (was: 0.3.0)
                   0.3.1

Moving to 0.3.1 as 0.3.0 is released

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Amr Awadallah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713395#action_12713395 ] 

Amr Awadallah commented on HIVE-344:
------------------------------------

@Ashish, sorry for delay replying and thanks for testing. I thought I tracked down all of the path params, I will take a closer look at AUX_PARAMS next week and submit another patch.

 -- amr


> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Amr Awadallah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amr Awadallah updated HIVE-344:
-------------------------------

    Attachment: HIVE-344.patch

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>             Fix For: 0.3.0
>
>         Attachments: HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Johan Oskarsson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Oskarsson updated HIVE-344:
---------------------------------

    Fix Version/s:     (was: 0.3.1)
                   0.3.2

Since there's been no activity on this ticket for a while I suggest we move it to 0.3.2 so that 0.3.1 can be released.

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.2
>
>         Attachments: HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Thusoo reassigned HIVE-344:
----------------------------------

    Assignee: Amr Awadallah

Thanks for the patch Amr. Like you I am a PC user as well. Will try it out.

Sometime back I do remember seeing some email on the hadoop mailing list that they are going to deprecate support on cygwin. Don't know if that is true or not...

Also you should try coLinux (it is a very lightweight linux vm that runs on windows). I have been able to do all my hive development on the FC7 image with that.



> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.0
>
>         Attachments: HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Amr Awadallah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740479#action_12740479 ] 

Amr Awadallah commented on HIVE-344:
------------------------------------

unfortunately HIVE_LIB is checked for validity inside these files using normal bash commands, so the cygpath translation for HIVE_LIB has to be done this late as opposed to in the main hive script (otherwise the verification in sub-scripts would fail).


> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-344) Fix the Hive CLI to run on cygwin under windows

Posted by "Amr Awadallah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12738777#action_12738777 ] 

Amr Awadallah commented on HIVE-344:
------------------------------------

ashish, worked?

> Fix the Hive CLI to run on cygwin under windows
> -----------------------------------------------
>
>                 Key: HIVE-344
>                 URL: https://issues.apache.org/jira/browse/HIVE-344
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: 0.3.0
>            Reporter: Amr Awadallah
>            Assignee: Amr Awadallah
>             Fix For: 0.3.1
>
>         Attachments: HIVE-344-v2.patch, HIVE-344.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.