How to make a monolithic jar.file?

后端 未结 5 1651
眼角桃花
眼角桃花 2021-01-17 06:29

I need to create a hadoop job jar file that uses mahout and a bunch of other libraries. I need ti be able to run the job without needing additional jar.files such that all r

5条回答
  •  一向
    一向 (楼主)
    2021-01-17 07:16

    Configure your build file to copy all the referenced classes to the build directory. For example, in ant:

        
            
        
    
    
        
            ...
            
                
            
            ...
       
    

    But it is better if you can manage without doing this. Use the libjars feature to load the jars into all nodes if you are doing this for running mapreduce jobs on a hadoop cluster

提交回复
热议问题