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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -