Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HBase MapRedcue job failing after upgrade CDH 6.3.3


HBase MapRedcue job failing after upgrade CDH 6.3.3

New Contributor

After upgrading to CDH 6.3.3, one map reduce jar started failing with the below error
`enter code here`
Error: org.apache.hadoop.hbase.DoNotRetryIOException: org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/regionserver/UnexpectedStateException
at org.apache.hadoop.hbase.ipc.RpcExecutor$
at org.apache.hadoop.hbase.ipc.RpcExecutor$
Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/regionserver/UnexpectedStateException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.toFilter(
at org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.toScan(
at org.apache.hadoop.hbase.regionserver.RSRpcServices.newRegionScanner(
at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(
at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(
... 3 more
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.regionserver.UnexpectedStateException
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 11 more

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.instantiateException(
at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.unwrapRemoteException(
at org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.makeIOExceptionOfException(
at org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.handleRemoteException(
at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(
at org.apache.hadoop.hbase.client.ScannerCallable.rpcCall(
at org.apache.hadoop.hbase.client.ScannerCallable.rpcCall(
at org.apache.hadoop.hbase.client.RpcRetryingCallerImpl.callWithoutRetries(
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$
at org.apache.hadoop.hbase.client.RpcRetryingCallerImpl.callWithRetries(
at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

During re-compile code with CDH 6.3.3 compatible dependencies I had to change below to
//import org.apache.hadoop.hbase.regionserver.UnexpectedStateException;
import org.apache.hadoop.hbase.exceptions.UnexpectedStateException;
However during the execution the jar is still failing with no class found error
I am not sure why run time its pointing to 5.12 lib.
I have rebind the maven jar multiple time.
Also I checked the class path its pointing to CDH6.3.33 jar.


Re: HBase MapRedcue job failing after upgrade CDH 6.3.3


Hello @Suyog1981 ,


thank you for reaching out to Community. I understand that your issue is:

After upgrading from CDH5.12 to CDH6.3.3. MR2 job that is connecting to HBase is failing and it seems to be that the runtime is still pointing to CDH5.12.


Can you please check if any of the links under /etc/alternatives or /var/lib/alternatives is still pointing to CDH5.12 paths on the node where the container of the MR job is failing? E.g. use:

grep CDH-5.12 * | awk -F ':' '{print $1}'


Thank you:

Ferenc Erdelyi, Technical Solutions Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Don't have an account?
Coming from Hortonworks? Activate your account here