I am new to using Maven.
I have Java files that have dependencies.
Like for example:
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.client.Delete;
import org.apache.hadoop.hbase.client.Get;
import org.apache.hadoop.hbase.client.HTable;
import org.apache.hadoop.hbase.client.Put;
In the development server, there is no Java compiler. I am planning to compile the Java files on the desktop and pack the classes into jar files and then execute the program on the development server.
The development server has all the required files, the desktop not yet. How can we use Maven to care of the issue while compiling it on the desktop?
EDIT:
I want to add data into hbase tables using Java. Hbase works fine in the dev server. I am able to create tables there through command line in dev serv. But hbase/hadoop is not there in the desktop environment.
So will downloading jars help, or do I need to setup hadoop and install hbase locally?
hadoop-core, hbase, and zookeeper are the required HBase dependencies. Additionally, you should try and use the Cloudera ones as they fix some additional bugs the Apache jars have. Look here.
Additionally, you do not have to install HBase locally. When you create the HBase configuration just change the zookeeper quorom to point to the server in which the Zookeeper resides.