Support Questions
Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Fail to upgrade from Ambari to Ambari

For upgrade testing, I've deployed HDP2.6.5.0-292 (w/ Ambari from Cloubreak and followed the documentation to upgrade to Ambari

It fails during the "ambari-server upgrade " process

# ambari-server upgrade
Using python  /usr/bin/python
Upgrading ambari-server
INFO: Upgrade Ambari Server
INFO: Updating Ambari Server properties in ...
INFO: Updating Ambari Server properties in ...
INFO: Original file kept
WARNING: Original file krb5JAASLogin.conf kept
INFO: File krb5JAASLogin.conf updated.
INFO: Fixing database objects owner
Ambari Server configured for Postgres. Confirm you have made a backup of the Ambari Server database [y/n] (n)? y
INFO: Upgrading database schema
ERROR: Unexpected ValueError: No JSON object could be decoded

Traceback (most recent call last):
  File "/usr/sbin/", line 1060, in <module>
  File "/usr/sbin/", line 1030, in mainBody
    main(options, args, parser)
  File "/usr/sbin/", line 980, in main
  File "/usr/sbin/", line 79, in execute
    self.fn(*self.args, **self.kwargs)
  File "/usr/lib/ambari-server/lib/ambari_server/", line 262, in upgrade
    retcode = run_schema_upgrade(args)
  File "/usr/lib/ambari-server/lib/ambari_server/", line 162, in run_schema_upgrade
    upgrade_response = json.loads(stdout)
  File "/usr/lib/ambari-server/lib/ambari_simplejson/", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/ambari-server/lib/ambari_simplejson/", line 335, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/ambari-server/lib/ambari_simplejson/", line 353, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


Hi @Renaud Manus,

Can you please see what is error in /var/log/ambari-server/ambari-server.log

because this exception doesn't state what the error.

@Renaud Manus

What kind of documentation are you referring to?

As per the Cloudbreak docs, in the latest CB 2.8.0 version, Ambari and HDP upgrade on long-running clusters is not yet supported, that feature will be part of the upcoming release.

Hope this helps!

ok thanks @pdarvasi