cascading - hadoop write file and put in Distributed cache -
i have requirement create dynamic file based on content in hadoop job.properties , put in distributed cache.
when create file see has been created path of "/tmp".
i create symbolic name , refer file in cache. now, when try read file in dis. cache not able access it. th error caused by: java.io.filenotfoundexception: requested file /tmp/myfile6425152127496245866.txt not exist.
can please let me know if should need specify path while creating file , use path while accessing/reading file.
i need file available till job running.
i don't meaning of
i need file available till job running
but, when practice use distributed cache , use path :
final string name_node = "hdfs://sandbox.hortonworks.com:8020"; job.addcachefile(new uri(name_node + "/user/hue/users/users.dat")); hope .
Comments
Post a Comment