Created 03-14-2017 11:43 AM
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?
Created 03-14-2017 11:53 AM
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.
Created on 03-15-2017 02:28 AM - edited 08-18-2019 05:25 AM
Yes, you are right. Ambari-server log is
Created 03-15-2017 02:39 AM
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.
Created on 03-15-2017 04:51 AM - edited 08-18-2019 05:25 AM
No, I custom a stack named isdp, so under my stack directory as follows:
Created 03-15-2017 07:26 AM
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.