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

ASF GitHub Bot commented on METRON-1296:
----------------------------------------

Github user nickwallen commented on the issue:

    https://github.com/apache/metron/pull/829
  
    Worked for me when I ran it up in Full Dev.  I am able to see the templates 
and use the Alerts UI.
    ```
    2017-11-03 22:22:41,294 - 
File['/var/lib/ambari-agent/tmp/bro_index.template'] {'content': 
StaticFile('bro_index.template'), 'mode': 0755}
    2017-11-03 22:22:41,298 - Writing 
File['/var/lib/ambari-agent/tmp/bro_index.template'] because it doesn't exist
    2017-11-03 22:22:41,299 - Changing permission for 
/var/lib/ambari-agent/tmp/bro_index.template from 644 to 755
    2017-11-03 22:22:41,299 - 
File['/var/lib/ambari-agent/tmp/snort_index.template'] {'content': 
StaticFile('snort_index.template'), 'mode': 0755}
    2017-11-03 22:22:41,300 - Writing 
File['/var/lib/ambari-agent/tmp/snort_index.template'] because it doesn't exist
    2017-11-03 22:22:41,301 - Changing permission for 
/var/lib/ambari-agent/tmp/snort_index.template from 644 to 755
    2017-11-03 22:22:41,301 - 
File['/var/lib/ambari-agent/tmp/yaf_index.template'] {'content': 
StaticFile('yaf_index.template'), 'mode': 0755}
    2017-11-03 22:22:41,302 - Writing 
File['/var/lib/ambari-agent/tmp/yaf_index.template'] because it doesn't exist
    2017-11-03 22:22:41,302 - Changing permission for 
/var/lib/ambari-agent/tmp/yaf_index.template from 644 to 755
    2017-11-03 22:22:41,302 - 
File['/var/lib/ambari-agent/tmp/error_index.template'] {'content': 
StaticFile('error_index.template'), 'mode': 0755}
    2017-11-03 22:22:41,303 - Writing 
File['/var/lib/ambari-agent/tmp/error_index.template'] because it doesn't exist
    2017-11-03 22:22:41,303 - Changing permission for 
/var/lib/ambari-agent/tmp/error_index.template from 644 to 755
    2017-11-03 22:22:41,303 - 
File['/var/lib/ambari-agent/tmp/meta_index.mapping'] {'content': 
StaticFile('meta_index.mapping'), 'mode': 0755}
    2017-11-03 22:22:41,304 - Writing 
File['/var/lib/ambari-agent/tmp/meta_index.mapping'] because it doesn't exist
    2017-11-03 22:22:41,305 - Changing permission for 
/var/lib/ambari-agent/tmp/meta_index.mapping from 644 to 755
    2017-11-03 22:22:41,305 - Execute['curl -s -XPOST 
http://node1:9200/_template/bro_index -d 
@/var/lib/ambari-agent/tmp/bro_index.template'] {'logoutput': True}
    {"acknowledged":true}2017-11-03 22:22:41,428 - Execute['curl -s -XPOST 
http://node1:9200/_template/snort_index -d 
@/var/lib/ambari-agent/tmp/snort_index.template'] {'logoutput': True}
    {"acknowledged":true}2017-11-03 22:22:41,448 - Execute['curl -s -XPOST 
http://node1:9200/_template/yaf_index -d 
@/var/lib/ambari-agent/tmp/yaf_index.template'] {'logoutput': True}
    {"acknowledged":true}2017-11-03 22:22:41,473 - Execute['curl -s -XPOST 
http://node1:9200/_template/error_index -d 
@/var/lib/ambari-agent/tmp/error_index.template'] {'logoutput': True}
    {"acknowledged":true}2017-11-03 22:22:41,497 - Execute['curl -s -XPOST 
http://node1:9200/metaalert_index -d 
@/var/lib/ambari-agent/tmp/meta_index.mapping'] {'logoutput': True}
    {"acknowledged":true}2017-11-03 22:22:41,832 - Setting Elasticsearch 
template installed to True
    2017-11-03 22:22:41,832 - 
File['/usr/metron/0.4.2/config/zookeeper/../metron_elasticsearch_template_installed_flag_file']
 {'owner': 'metron', 'content': 'This file created on: 2017-11-03 22:22:41', 
'mode': 0755}
    2017-11-03 22:22:41,833 - Writing 
File['/usr/metron/0.4.2/config/zookeeper/../metron_elasticsearch_template_installed_flag_file']
 because it doesn't exist
    2017-11-03 22:22:41,833 - Changing owner for 
/usr/metron/0.4.2/config/zookeeper/../metron_elasticsearch_template_installed_flag_file
 from 0 to metron
    2017-11-03 22:22:41,833 - Changing permission for 
/usr/metron/0.4.2/config/zookeeper/../metron_elasticsearch_template_installed_flag_file
 from 644 to 755
    2017-11-03 22:22:41,833 - Starting indexing
    ```


> Full Dev Fails to Deploy Index Templates
> ----------------------------------------
>
>                 Key: METRON-1296
>                 URL: https://issues.apache.org/jira/browse/METRON-1296
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Nick Allen
>            Assignee: Nick Allen
>            Priority: Normal
>             Fix For: 0.4.2
>
>
> There are cases where Full Dev is deployed, but the index templates are not 
> deployed.  Without the index templates, the Alerts UI and Kibana dashboard do 
> not work as expected.  This seems to occur sometimes and not others.
> The index template install happens during startup of the Index topology.  
> Elasticsearch master start occurred well before the attempt to install the 
> templates.  The following message is shown in the logs.
> {code}
> WARNING: Elasticsearch templates could not be installed. The Elasticsearch 
> service is probably down.
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to