Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

configure file is not consistent?

Contributor

After I enable ranger plugin for hdfs, I save the change, it presents error message "The configuration changes could not be validated for consistency due to an unknown error. Your changes have not been saved yet. Would you like to proceed and save the changes?". What is it happened?

5 REPLIES 5

Super Mentor

@Zhao Chaofeng

If you see the mentioned error in the ambari web UI then in that case you should check the ambari server log to see more detail about the error:

/var/log/ambari-server/ambari-server.log

.

Please share if you see any stackTrace there.

Contributor

Yes, you are right. Ambari-server log is

13633-selection-021.png

Super Mentor

@Zhao Chaofeng

Do you have any extra directory inside the "/usr/hdp/" Sometimes unwanted directories present here can cause this issue.

Can you please list the content of the mentioned directory here?

# ls -lart /usr/hdp/
drwxr-xr-x  19 root root 4096 Dec  2 07:59 2.4.3.0-227
drwxr-xr-x   3 root root 4096 Dec  2 15:11 share
drwxr-xr-x  27 root root 4096 Dec 13 01:48 2.5.0.0-1245
drwxr-xr-x   2 root root 4096 Mar 14 10:46 curren

.

Or please find a file/directory with name "SNAPSHOT" inside the "/usr/hdp" to findout if mistakenly you placed any file with that name anywhere.

Contributor

No, I custom a stack named isdp, so under my stack directory as follows:

13634-selection-001.png

Contributor

I find pom.xml in contrib/views/tez path that "tez.view.version" is 0.7.0.0-SNAPSHOT, but in stack_advisor.py there is such code:

if os.path.exists(views_work_dir) and os.path.isdir(views_work_dir):
  last_version = '0.0.0'
  for file in os.listdir(views_work_dir):
    if fnmatch.fnmatch(file, 'TEZ{*}'):
      current_version = file.lstrip("TEZ{").rstrip("}") # E.g.: TEZ{0.7.0.2.3.0.0-2154}
      if self.versionCompare(current_version.replace("-", "."), last_version.replace("-", ".")) >= 0:
        latest_tez_jar_version = current_version
        last_version = current_version
      pass
  pass
pass<br>
def versionCompare(self, version1, version2):
  def normalize(v):
    return [int(x) for x in re.sub(r'(\.0+)*$','', v).split(".")]
  return cmp(normalize(version1), normalize(version2))
pass

So when versionCompare function is called, 'SNAPSHOT' can not transformed to int, so throw exception.

But ambari does not change this, and it can run. In my environment, there is error.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.