Support Questions

Find answers, ask questions, and share your expertise

java.lang.NumberFormatException:For input string: ""

avatar
New Contributor
1 ACCEPTED SOLUTION

avatar

Here is the listing from my host. This is a worker node but should look similar on the Cloudera Manager host as well

 

# ls -l /opt/cloudera/parcel*
/opt/cloudera/parcel-cache:
total 2990852
-rw-r--r-- 1 root root 1531811730 Dec 10 01:10 CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel
-rw-r--r-- 1 root root 1530807851 Dec 10 00:46 CDH-5.2.1-1.cdh5.2.1.p507.148-el6.parcel

/opt/cloudera/parcel-repo:
total 2990860
-rw-r----- 1 cloudera-scm cloudera-scm 1531811730 Dec 10 00:37 CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel
-rw-r----- 1 cloudera-scm cloudera-scm         42 Dec 10 00:37 CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel.sha
-rw-r----- 1 cloudera-scm cloudera-scm 1530807851 Dec 10 00:45 CDH-5.2.1-1.cdh5.2.1.p507.148-el6.parcel
-rw-r----- 1 cloudera-scm cloudera-scm         41 Dec 10 00:45 CDH-5.2.1-1.cdh5.2.1.p507.148-el6.parcel.sha

/opt/cloudera/parcels:
total 12
-rw-r--r--  1 root root 2336 Dec 10 01:40 a
lrwxrwxrwx  1 root root   29 Dec 10 01:32 CDH -> CDH-5.2.1-1.cdh5.2.1.p507.148
drwxrwxr-x 11 root root 4096 Nov 19 23:18 CDH-5.2.1-1.cdh5.2.1.p0.12
drwxrwxr-x 11 root root 4096 Dec  3 01:25 CDH-5.2.1-1.cdh5.2.1.p507.148

 

 

The exception you're seeing is due to the parse of a parcel name failing. The format should be like in the listing above whereas in your cluster it is just "CDH" which should ideally be a symlink, not a directory.

 

Are you aware if the contents in these directories was manually changed sometime?

Regards,
Gautam Gopalakrishnan

View solution in original post

5 REPLIES 5

avatar
Are you able to provide the following listing from the CM host please:
# ls -l /opt/cloudera/parcel*
Regards,
Gautam Gopalakrishnan

avatar
New Contributor
See below.
The error appears during the wizard before the parcels have been selected. Although previously when I installed using the package approach I got as far as completing the wizard and then the error appeared when logging into CM for the first time.
The build is CM 5.2.1 on CentOS 6.3.
Thanks

/opt/cloudera/parcel-cache:
total 0

/opt/cloudera/parcel-repo:
total 0

/opt/cloudera/parcels:
total 4
drwxr-xr-x. 3 root root 4096 Jul 7 16:13 CDH

avatar

Here is the listing from my host. This is a worker node but should look similar on the Cloudera Manager host as well

 

# ls -l /opt/cloudera/parcel*
/opt/cloudera/parcel-cache:
total 2990852
-rw-r--r-- 1 root root 1531811730 Dec 10 01:10 CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel
-rw-r--r-- 1 root root 1530807851 Dec 10 00:46 CDH-5.2.1-1.cdh5.2.1.p507.148-el6.parcel

/opt/cloudera/parcel-repo:
total 2990860
-rw-r----- 1 cloudera-scm cloudera-scm 1531811730 Dec 10 00:37 CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel
-rw-r----- 1 cloudera-scm cloudera-scm         42 Dec 10 00:37 CDH-5.2.1-1.cdh5.2.1.p0.12-el6.parcel.sha
-rw-r----- 1 cloudera-scm cloudera-scm 1530807851 Dec 10 00:45 CDH-5.2.1-1.cdh5.2.1.p507.148-el6.parcel
-rw-r----- 1 cloudera-scm cloudera-scm         41 Dec 10 00:45 CDH-5.2.1-1.cdh5.2.1.p507.148-el6.parcel.sha

/opt/cloudera/parcels:
total 12
-rw-r--r--  1 root root 2336 Dec 10 01:40 a
lrwxrwxrwx  1 root root   29 Dec 10 01:32 CDH -> CDH-5.2.1-1.cdh5.2.1.p507.148
drwxrwxr-x 11 root root 4096 Nov 19 23:18 CDH-5.2.1-1.cdh5.2.1.p0.12
drwxrwxr-x 11 root root 4096 Dec  3 01:25 CDH-5.2.1-1.cdh5.2.1.p507.148

 

 

The exception you're seeing is due to the parse of a parcel name failing. The format should be like in the listing above whereas in your cluster it is just "CDH" which should ideally be a symlink, not a directory.

 

Are you aware if the contents in these directories was manually changed sometime?

Regards,
Gautam Gopalakrishnan

avatar
New Contributor
That CM folder contained by the looks of things an old Spark parcel from a previous failed install.
Removing the CM folder (in fact the /opt/cloudera/ folder in its entirety) and removing and reinstalling cloudera-scm-manager seems to have resolved the issue.
It would be nice to see this error handled better so it doesn't bring back the endless pop ups. And maybe the documentation updated if that folder does need to be empty prior to a new installation.
Thanks

avatar
Your point is taken. I will file an internal jira to track this error as it is confusing. The error message itself could use some improvement.
Regards,
Gautam Gopalakrishnan