hbase ClassNotFoundException

前端 未结 4 868
北荒
北荒 2021-01-20 02:27

I want to run a map reduce example:

    package my.test;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.En         


        
4条回答
  •  粉色の甜心
    2021-01-20 03:10

    You have two easy options:

    1) Build a fat jar, where your mt.jar file includes the hbase-0.94.0.jar (can be done with mvn package -Dfatjar )

    2) Use the GenericOptionsParser (I think you are trying to by implementing Tool) and then specify the -libjars parameter on the command line.

提交回复
热议问题