Issue with Sqoop command aliases (*.cmd)


  • Hello,

    I'm currently using HDInsight on the local server, and having troubles using Sqoop *.cmd batches.
    Namely, I'm perfectly able to run sqoop directly (e.g. sqoop import --connect...), however I'm receiving the following error calling simple sqoop-help.cmd from C:\Hadoop\sqoop-1.4.2\ folder:

    The system cannot find the path specified.
    'c:\Hadoop\sqoop-1.4.2\bin\' is not recognized as an internal or external command,
    operable program or batch file.
    Setting HBASE_HOME to
    Warning: HBASE_HOME [c:\hadoop\hadoop-1.1.0-SNAPSHOT\hbase-0.94.2] does not exis
    t HBase imports will fail.
    Please set HBASE_HOME to the root of your HBase installation.
    Setting ZOOKEEPER_HOME to
    Warning: ZOOKEEPER_HOME [c:\hadoop\hadoop-1.1.0-SNAPSHOT\zookeeper-3.4.3] does n
    ot exist
    Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.
    Exception in thread "main" java.lang.NoClassDefFoundError: \//\conf;c:\Hadoop\sq
    Caused by: java.lang.ClassNotFoundException: \..\conf;c:\Hadoop\sqoop-1.4.2\bin"
            at Method)
            at java.lang.ClassLoader.loadClass(
            at sun.misc.Launcher$AppClassLoader.loadClass(
            at java.lang.ClassLoader.loadClass(
    Could not find the main class: \..\conf;c:\Hadoop\sqoop-1.4.2\bin"c:\Hadoop\sqoo
    p-1.4.2\bin\;;;c:\Hadoop\sqoop-1.4.2\bin.  Program will exit.

    Is there something I need to configure additionally, in order of those batches to work?
    Thank you in advance for any feedback and suggestions!


    Monday, December 24, 2012 1:46 PM

All replies

  • Seems to me, some issue with the execution of sqoop-help.cmd 

    set prgm=%~f0 
    set bin=%~dp0 
    if "%bin:~-1%" == "\" ( 
    set bin=%bin:~0,-1% 

    call "%bin%\sqoop.cmd" help %* 

    Instead try this 

    C:\hadoop\sqoop-1.4.2> . bin\sqoop.cmd help

    Friday, March 08, 2013 9:36 PM