[ https://issues.apache.org/jira/browse/HBASE-20906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Glenn Kruszewski updated HBASE-20906: ------------------------------------- Description: Executing hbase shell in Windows using Cygwin does not properly resolve the java classpath. This is caused by having cygpath calls converting to windows paths prior to locating the jar files. Line 241 in the hbase script has cygpath converting the CLASSPATH, HBASE_HOME, and HBASE_LOG_DIR, later in the file a for loop is used to locate jar files, however this is using the windows path so none for the jar files will be found, giving the error 'Could not find or load main class org.jruby.Main.' As a work around, I've updated the hbase-env.sh to export HBASE_CLASSPATH=/usr/local/hbase/lib/ruby/*:/usr/local/hbase/lib/*** was: Executing hbase shell in Windows using Cygwin does not properly resolve the java classpath. This is caused by having cygpath calls converting to windows paths prior to locating the jar files. Line 241 in the hbase script has cygpath converting the CLASSPATH, HBASE_HOME, and HBASE_LOG_DIR, later in the file a for loop is used to locate jar files, however this is using the windows path so none for the jar files will be found, giving the error 'Could not find or load main class org.jruby.Main.' As a work around, I've updated the hbase-env.sh to export HBASE_CLASSPATH=/usr/local/hbase/lib/ruby/*:/usr/local/hbase/lib/* > Hbase shell using Cygwin gives the error Could not find or load main class > org.jruby.Main > ----------------------------------------------------------------------------------------- > > Key: HBASE-20906 > URL: https://issues.apache.org/jira/browse/HBASE-20906 > Project: HBase > Issue Type: Bug > Components: shell > Affects Versions: 2.0.1 > Environment: Windows 10 > Hbase 2.0.1 > Hadoop 2.7.6 > Cygwin 2.9.0 > Reporter: Glenn Kruszewski > Priority: Minor > > Executing hbase shell in Windows using Cygwin does not properly resolve the > java classpath. This is caused by having cygpath calls converting to windows > paths prior to locating the jar files. Line 241 in the hbase script has > cygpath converting the CLASSPATH, HBASE_HOME, and HBASE_LOG_DIR, later in the > file a for loop is used to locate jar files, however this is using the > windows path so none for the jar files will be found, giving the error 'Could > not find or load main class org.jruby.Main.' > As a work around, I've updated the hbase-env.sh to export > HBASE_CLASSPATH=/usr/local/hbase/lib/ruby/*:/usr/local/hbase/lib/*** -- This message was sent by Atlassian JIRA (v7.6.3#76005)