I want to write files to HDFS from windows server. Hadoop cluster is on Linux. I tried researching everywhere I got a java code that can be run using "hadoop jar"
Can somebody help me to understand how can I run HDFS file write java code from windows? What is required on Windows box? Even a proper link will do.
You need only to code a simple java program and run it like a normal .jar file.
In the project you need to import the hadoop library.
This is a working example maven project (I tested it on my cluster):
Remember to put the dependencies to your pom.xml and the instruction to build the manifest file for the main class:
Just lunch the program with the command:
Of course you need to edit the code with your package name and namenode ip address.