ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-18207) For atlas, solr configSet should be renamed from "basic_configs" to "atlas_configs"
Date Fri, 19 Aug 2016 22:10:20 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-18207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15428923#comment-15428923
] 

Alejandro Fernandez commented on AMBARI-18207:
----------------------------------------------

-1 Unit Tests on test_metadata_server.py are failing.

{code}
Failed tests:
FAIL: test_configure_default (test_metadata_server.TestMetadataServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py",
line 322, in test_configure_default
    self.configureResourcesCalled()
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py",
line 154, in configureResourcesCalled
    self.assertResourceCalledRegexp('^Execute$', '^ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr
--download-config --config-dir /tmp/solr_config_basic_configs_0.[0-9]* --config-set basic_configs
--retry 30 --interval 5')
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 289, in assertResourceCalledRegexp
    self.assertRegexpMatches(resource.name, name)
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 301, in assertRegexpMatches
    raise AssertionError, msg or 'pattern %s does not match %s' % (pattern, value)
AssertionError: pattern ^ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45 /usr/lib/ambari-infra-solr-client/solrCloudCli.sh
--zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr --download-config --config-dir
/tmp/solr_config_basic_configs_0.[0-9]* --config-set basic_configs --retry 30 --interval 5
does not match ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45 /usr/lib/ambari-infra-solr-client/solrCloudCli.sh
--zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr --download-config --config-dir
/tmp/solr_config_atlas_configs_0.52290538459 --config-set atlas_configs --retry 30 --interval
5

FAIL: test_configure_secure (test_metadata_server.TestMetadataServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py",
line 338, in test_configure_secure
    self.configureResourcesCalledSecure()
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py",
line 297, in configureResourcesCalledSecure
    self.assertResourceCalledRegexp('^Execute$', '^ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr
--download-config --config-dir /tmp/solr_config_basic_configs_0.[0-9]* --config-set basic_configs
--retry 30 --interval 5')
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 289, in assertResourceCalledRegexp
    self.assertRegexpMatches(resource.name, name)
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 301, in assertRegexpMatches
    raise AssertionError, msg or 'pattern %s does not match %s' % (pattern, value)
AssertionError: pattern ^ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45 /usr/lib/ambari-infra-solr-client/solrCloudCli.sh
--zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr --download-config --config-dir
/tmp/solr_config_basic_configs_0.[0-9]* --config-set basic_configs --retry 30 --interval 5
does not match ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45 /usr/lib/ambari-infra-solr-client/solrCloudCli.sh
--zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr --download-config --config-dir
/tmp/solr_config_atlas_configs_0.485198345464 --config-set atlas_configs --retry 30 --interval
5

FAIL: test_start_default (test_metadata_server.TestMetadataServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py",
line 353, in test_start_default
    self.configureResourcesCalled()
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py",
line 154, in configureResourcesCalled
    self.assertResourceCalledRegexp('^Execute$', '^ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr
--download-config --config-dir /tmp/solr_config_basic_configs_0.[0-9]* --config-set basic_configs
--retry 30 --interval 5')
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 289, in assertResourceCalledRegexp
    self.assertRegexpMatches(resource.name, name)
  File "/Users/afernandez/Documents/git/ambari-vagrant/centos6.4/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 301, in assertRegexpMatches
    raise AssertionError, msg or 'pattern %s does not match %s' % (pattern, value)
AssertionError: pattern ^ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45 /usr/lib/ambari-infra-solr-client/solrCloudCli.sh
--zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr --download-config --config-dir
/tmp/solr_config_basic_configs_0.[0-9]* --config-set basic_configs --retry 30 --interval 5
does not match ambari-sudo.sh JAVA_HOME=/usr/jdk64/jdk1.7.0_45 /usr/lib/ambari-infra-solr-client/solrCloudCli.sh
--zookeeper-connect-string c6401.ambari.apache.org:2181/infra-solr --download-config --config-dir
/tmp/solr_config_atlas_configs_0.465574270896 --config-set atlas_configs --retry 30 --interval
5
{code}

> For atlas, solr configSet should be renamed from "basic_configs" to "atlas_configs"
> -----------------------------------------------------------------------------------
>
>                 Key: AMBARI-18207
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18207
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Ayub Khan
>            Assignee: Ayub Khan
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-18207.patch
>
>
> *The config set being named as "basic_configs" is an issue because this conflicts with
the solr supplied default configset which maybe have been uploaded and being used by the customer.
In this case, the collection required for ATLAS will be created with incorrect config set.*
> Ambari agent log while starting atlas
> {noformat}
> 2016-08-18 07:20:56,550 - Execute['ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181
--znode /infra-solr --check-znode --retry 5 --interval 10'] {}
> 2016-08-18 07:20:57,349 - Execute['ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181/infra-solr
--download-config --config-dir /var/lib/ambari-agent/tmp/solr_config_basic_configs_0.862005779328
--config-set basic_configs --retry 30 --interval 5'] {'only_if': 'ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181/infra-solr
--check-config --config-set basic_configs --retry 30 --interval 5'}
> 2016-08-18 07:20:58,858 - File['/var/lib/ambari-agent/tmp/solr_config_basic_configs_0.862005779328/solrconfig.xml']
{'content': InlineTemplate(...), 'only_if': 'test -d /var/lib/ambari-agent/tmp/solr_config_basic_configs_0.862005779328'}
> 2016-08-18 07:20:58,870 - Execute['ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181/infra-solr
--upload-config --config-dir /var/lib/ambari-agent/tmp/solr_config_basic_configs_0.862005779328
--config-set basic_configs --retry 30 --interval 5 --jaas-file /etc/atlas/conf/atlas_jaas.conf']
{'only_if': 'test -d /var/lib/ambari-agent/tmp/solr_config_basic_configs_0.862005779328'}
> 2016-08-18 07:21:00,082 - Execute['ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181/infra-solr
--upload-config --config-dir /etc/atlas/conf/solr --config-set basic_configs --retry 30 --interval
5 --jaas-file /etc/atlas/conf/atlas_jaas.conf'] {'not_if': 'test -d /var/lib/ambari-agent/tmp/solr_config_basic_configs_0.862005779328'}
> 2016-08-18 07:21:00,097 - Skipping Execute['ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181/infra-solr
--upload-config --config-dir /etc/atlas/conf/solr --config-set basic_configs --retry 30 --interval
5 --jaas-file /etc/atlas/conf/atlas_jaas.conf'] due to not_if
> 2016-08-18 07:21:00,098 - Directory['/var/lib/ambari-agent/tmp/solr_config_basic_configs_0.862005779328']
{'action': ['delete'], 'create_parents': True}
> 2016-08-18 07:21:00,099 - Removing directory Directory['/var/lib/ambari-agent/tmp/solr_config_basic_configs_0.862005779328']
and all its content
> 2016-08-18 07:21:00,101 - Execute['ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181/infra-solr
--create-collection --collection vertex_index --config-set basic_configs --shards 1 --replication
1 --max-shards 1 --retry 5 --interval 10 --no-sharding --jaas-file /etc/atlas/conf/atlas_jaas.conf']
{}
> 2016-08-18 07:21:01,765 - Execute['ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181/infra-solr
--create-collection --collection edge_index --config-set basic_configs --shards 1 --replication
1 --max-shards 1 --retry 5 --interval 10 --no-sharding --jaas-file /etc/atlas/conf/atlas_jaas.conf']
{}
> 2016-08-18 07:21:03,295 - Execute['ambari-sudo.sh JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
/usr/lib/ambari-infra-solr-client/solrCloudCli.sh --zookeeper-connect-string atlas-resilience-testing-1.openstacklocal:2181,atlas-resilience-testing-2.openstacklocal:2181/infra-solr
--create-collection --collection fulltext_index --config-set basic_configs --shards 1 --replication
1 --max-shards 1 --retry 5 --interval 10 --no-sharding --jaas-file /etc/atlas/conf/atlas_jaas.conf']
{}
> 2016-08-18 07:21:04,856 - TemplateConfig['/etc/atlas/conf/atl
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message