How to pass multiple files for same input parameter in hadoop -


i have 2 input files, , need pass both files under same parameter in hadoop.

eg: hadoop jar somemainclass -d testinput=file1,file2  

i don't want combine files 1 file used based on user condition. tried giving parameter -d testinput twice, took last file , not first file.

if pass multiple instances of same parameter, value of first instance going overwritten value of second instance.

you can specify multiple values same parameter, separating values commas.

for e.g.

<property>    <name>yarn.resourcemanager.zk-address</name>    <value>zk1:2181,zk2:2181,zk3:2181</value>  </property>  

so, while passing values through command line, can specify -dtestinput=file,file2


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -