Support Questions

Find answers, ask questions, and share your expertise

ERROR tools.DiskBalancerCLI: java.lang.IllegalArgumentException

avatar
New Contributor

when i tried to run 

hdfs diskbalancer -plan $(hostname -f)

 

VERSION info:

Hadoop 2.6.0-cdh5.14.4

 

 i get this notice:

21/06/30 11:30:41 ERROR tools.DiskBalancerCLI: java.lang.IllegalArgumentException

 

then i tried write the real hostname into my command , not work and same error notice

i also tried  use --plan instead of -plan , not work and same error notice

i found this link  but there's no resolve solution , can somebody help me?

1 REPLY 1

avatar
Master Collaborator

Seems like your $(hostname -f) didn't reflect the FQDN, could you please provide the output of "hostname -f", also provide the full stack trace of this Exception?

For disk balancer, here is a good article you can refer to:

https://blog.cloudera.com/how-to-use-the-new-hdfs-intra-datanode-disk-balancer-in-apache-hadoop/