Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

start hadoop and yarn with java

import java.io.File;


String hadoop_home =  System.getenv("HADOOP_HOME"); //C:hadoop-3.1.0

Runtime.getRuntime().exec("cmd /c start-all.cmd",null,new File(hadoop_home+"./sbin"));
 
PREVIOUS NEXT
Tagged: #start #hadoop #yarn #java
ADD COMMENT
Topic
Name
1+4 =