You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by Suhas Satish <su...@gmail.com> on 2013/08/13 02:01:36 UTC

sqoop on windows - scripts support for cygwin

Is there any plan to support bin/sqoop
and bin/configure-sqoop scripts to support running on windows (cygwin)
platforms?

The change I  foresee is simple enough to export classpath and other
environment variables using a conditional flag switch like follows -

# cygwin path translation
if $cygwin; then
    CLASSPATH=`cygpath -p -w "$CLASSPATH"`
fi


I see the sqoop release documentation mentioning as follows -
This document assumes you are using a Linux or Linux-like environment. If
you are using Windows, you may be able to use cygwin to accomplish most of
the following tasks. If you are using Mac OS X, you should see few (if any)
compatibility errors. Sqoop is predominantly operated and tested on Linux.


Are there any other considerations which I'm overlooking?

The reason I ask is because I think that sqoop jar is not added to
HADOOP_CLASSPATH correctly while running on windows. bin/configure-sqoop
which does the environment variable export maybe the culprit.

Thanks,
Suhas.

Re: sqoop on windows - scripts support for cygwin

Posted by Jarek Jarcec Cecho <ja...@apache.org>.
Hi Suhas,
I'm not sure about cygwin, but native windows support for Sqoop is on the way (covered by SQOOP-957 [1]).

Jarcec

Links:
1: https://issues.apache.org/jira/browse/SQOOP-957

On Mon, Aug 12, 2013 at 05:01:36PM -0700, Suhas Satish wrote:
> Is there any plan to support bin/sqoop
> and bin/configure-sqoop scripts to support running on windows (cygwin)
> platforms?
> 
> The change I  foresee is simple enough to export classpath and other
> environment variables using a conditional flag switch like follows -
> 
> # cygwin path translation
> if $cygwin; then
>     CLASSPATH=`cygpath -p -w "$CLASSPATH"`
> fi
> 
> 
> I see the sqoop release documentation mentioning as follows -
> This document assumes you are using a Linux or Linux-like environment. If
> you are using Windows, you may be able to use cygwin to accomplish most of
> the following tasks. If you are using Mac OS X, you should see few (if any)
> compatibility errors. Sqoop is predominantly operated and tested on Linux.
> 
> 
> Are there any other considerations which I'm overlooking?
> 
> The reason I ask is because I think that sqoop jar is not added to
> HADOOP_CLASSPATH correctly while running on windows. bin/configure-sqoop
> which does the environment variable export maybe the culprit.
> 
> Thanks,
> Suhas.

Re: sqoop on windows - scripts support for cygwin

Posted by Jarek Jarcec Cecho <ja...@apache.org>.
Hi Suhas,
I'm not sure about cygwin, but native windows support for Sqoop is on the way (covered by SQOOP-957 [1]).

Jarcec

Links:
1: https://issues.apache.org/jira/browse/SQOOP-957

On Mon, Aug 12, 2013 at 05:01:36PM -0700, Suhas Satish wrote:
> Is there any plan to support bin/sqoop
> and bin/configure-sqoop scripts to support running on windows (cygwin)
> platforms?
> 
> The change I  foresee is simple enough to export classpath and other
> environment variables using a conditional flag switch like follows -
> 
> # cygwin path translation
> if $cygwin; then
>     CLASSPATH=`cygpath -p -w "$CLASSPATH"`
> fi
> 
> 
> I see the sqoop release documentation mentioning as follows -
> This document assumes you are using a Linux or Linux-like environment. If
> you are using Windows, you may be able to use cygwin to accomplish most of
> the following tasks. If you are using Mac OS X, you should see few (if any)
> compatibility errors. Sqoop is predominantly operated and tested on Linux.
> 
> 
> Are there any other considerations which I'm overlooking?
> 
> The reason I ask is because I think that sqoop jar is not added to
> HADOOP_CLASSPATH correctly while running on windows. bin/configure-sqoop
> which does the environment variable export maybe the culprit.
> 
> Thanks,
> Suhas.