[ 
https://issues.apache.org/jira/browse/HBASE-21182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613586#comment-16613586
 ] 

Sean Busbey commented on HBASE-21182:
-------------------------------------

{code}
-              <excludeArtifactIds>jline,jruby-complete</excludeArtifactIds>
+              
<excludeArtifactIds>jline,jruby-complete,hbase-shaded-mapreduce</excludeArtifactIds>
{code}

You should exclude all of the shaded client artifacts.

{quote}
Yes. I ran start-hbase.sh from the source checkout directory after running mvn 
clean install -DskipTests. I usually do this to test my patch. At least, before 
HBASE-21153 I was able to do this. You mean it's unexpected?

...
I think running bin/start-hbase.sh in the source checkout directory is 
expected, because bin/hbase obviously expects it as the following:
...
{quote}

I believe stack uses this same thing, so it's definitely expected.

 If folks want it to keep working reliably, I strongly suggest someone add a 
test for it to nightly and probably add a paragraph to the "Building Apache 
HBase" section of the ref guide after the advice on how to quickly build a 
tarball. The current implementation is brittle and not covered by any checks 
for what would break in an actual deployment. Related, maybe it's time we talk 
about better ways to do "quick" testing of things instead of maintaining this 
shadow of a normal deployment. Something for dev@; no need to block this fix.

> Failed to execute start-hbase.sh
> --------------------------------
>
>                 Key: HBASE-21182
>                 URL: https://issues.apache.org/jira/browse/HBASE-21182
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Subrat Mishra
>            Assignee: Toshihiro Suzuki
>            Priority: Major
>         Attachments: HBASE-21182.master.001.patch
>
>
> Built master branch like below:
> {code:java}
> mvn clean install -DskipTests{code}
> Then tried to execute start-hbase.sh failed with NoClassDefFoundError
> {code:java}
> ./bin/start-hbase.sh 
> Error: A JNI error has occurred, please check your installation and try again
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/hadoop/hbase/shaded/org/eclipse/jetty/server/Connector
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
> at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
> at java.lang.Class.getMethod0(Class.java:3018)
> at java.lang.Class.getMethod(Class.java:1784)
> at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
> at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.hadoop.hbase.shaded.org.eclipse.jetty.server.Connector{code}
> Note: It worked after reverting HBASE-21153



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to