Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

The Save button is disabled when registering a new version using local repo Baseurl in Ambari 2.5.0.3(HDP2.6.0.3)

Highlighted

The Save button is disabled when registering a new version using local repo Baseurl in Ambari 2.5.0.3(HDP2.6.0.3)

New Contributor

The Save button is disabled when registering a new version using local repo Baseurl in Ambari 2.5.0.3(HDP2.6.0.3).

I have tried the below solution provided for Ambari 2.6 but its not working for Ambari 2.5.0.3

# ambari-server setup --enable-lzo-under-gpl-license Using python /usr/bin/python Setup ambari-server Usage: ambari-server.py [options] action [stack_id os] ambari-server.py: error: no such option: --enable-lzo-under-gpl-license

2 REPLIES 2

Re: The Save button is disabled when registering a new version using local repo Baseurl in Ambari 2.5.0.3(HDP2.6.0.3)

hi @tauqeer khan,

I see The validation of a local Repo Base URL is dont by this following code in javascript.

$scope.isValidRepoBaseUrl = function (value) {
    var remotePattern = /^(?:(?:https?|ftp):\/{2})(?:\S+(?::\S*)?@)?(?:(?:(?:[\w\-.]))*)(?::[0-9]+)?(?:\/\S*)?$/,
      localPattern = /^file:\/{2,3}([a-zA-Z][:|]\/){0,1}[\w~!*'();@&=\/\\\-+$,?%#.\[\]]+$/;
    return remotePattern.test(value) || localPattern.test(value);
  };

So if your URL is not satisfied by this Regex the save button will be disabled.

Can you please see if your Localrepo is satisfying this condition by editing the value of UrlToTest variable in this jd fiddle ?

https://jsfiddle.net/53unsr9g/

Hope this helps

Re: The Save button is disabled when registering a new version using local repo Baseurl in Ambari 2.5.0.3(HDP2.6.0.3)

hello @tauqeer khan ,

were you able to resolve the issue you where facing .

Can you please provide a screenshot of the issue you are facing.