hadoop - How can I import the distcp package in java? -


how can import distcp package in java ? tried "org.apache.hadoop" % "hadoop-distcp" % "2.7.1" dependency , used import statement follows

import org.apache.hadoop.tools.util.distcp 

but distcp not recognized.

i trying call distcp in java hadoop code using tool runner import doesn't work.

thank you

the simple thing have note down here is, package org.apache.hadoop.tools.util doesn't contains distcp class.

rather that, package org.apache.hadoop.tools contains distcp class.

to fix issue, import follows :

import org.apache.hadoop.tools.distcp;

which recognized ide, believe.

for reference, refer link.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -