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.

solr maual installation error when executing from chef:

Explorer

Hi I am new to hadoop i am trying to add solr service in ambari by using a recepi and executing using chef command ,my code works fine and adds solr compnent but installation is failing and getting the error:

stderr: /var/lib/ambari-agent/data/errors-670.txt

Repository HDP-UTILS-1.1.0.21 is listed more than once in the configuration
Repository HDP-UTILS-1.1.0.21 is listed more than once in the configuration
Repository HDP-UTILS-1.1.0.21 is listed more than once in the configuration
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/SOLR/5.5.2.2.5/package/scripts/solr.py", line 101, in <module>
    Solr().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/SOLR/5.5.2.2.5/package/scripts/solr.py", line 15, in install
    import params
  File "/var/lib/ambari-agent/cache/common-services/SOLR/5.5.2.2.5/package/scripts/params.py", line 12, in <module>
    import status_params
  File "/var/lib/ambari-agent/cache/common-services/SOLR/5.5.2.2.5/package/scripts/status_params.py", line 13, in <module>
    solr_config_pid_file = format('{solr_config_pid_dir}/solr-{solr_config_port}.pid')
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/format.py", line 95, in format
    return ConfigurationFormatter().format(format_string, args, **result)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/format.py", line 59, in format
    result_protected = self.vformat(format_string, args, all_params)
  File "/usr/lib64/python2.6/string.py", line 549, in vformat
    result = self._vformat(format_string, args, kwargs, used_args, 2)
  File "/usr/lib64/python2.6/string.py", line 582, in _vformat
    result.append(self.format_field(obj, format_spec))
  File "/usr/lib64/python2.6/string.py", line 599, in format_field
    return format(value, format_spec)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", line 73, in __getattr__
    raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
resource_management.core.exceptions.Fail: Configuration parameter 'solr-config-env' was not found in configurations dictionary!
3 REPLIES 3

Are you using the HDPSearch mpack? It's the recommend way to add Solr to Ambari: http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_solr-search-installation/content/ch_hdp-s...

Explorer

Explorer

using the below command to install the solr service

execute "Installed SOLR_SERVER component" do command `curl -u admin:admin -X PUT -d '{"HostRoles": {"state": "INSTALLED"}}' -H 'X-Requested-By:ambari' http://ec2-54-18-98-88.us-west-2.compute.amazonaws.com:8080/api/v1/clusters/ambari/hosts/ip-000-00-0... end

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