Created on 08-11-2017 03:49 AM - edited 08-17-2019 08:13 PM
I have installed the metron on a bare metal, centos7.
reference: Metron 0.4.0 with HDP 2.5 bare-metal install on Centos 7 with MariaDB for Metron REST
Now all of the service are start up in ambari UI.
but there are something wrong in the login page:
the metron rest: :browser can connect to this page, but it need username/password, i tried all the accounts, but failed to login.
management UI:browser can not connect to this page.
kafka: this address uses a port is typically used for purposes other than Web browsing. For security reasons, Firefox has cancelled the request
I am a new comer, can anyone give me some advices? how to find the problem?
THANK YOU!
besides, when I installed the metron with HDP, when I built the metron code build with HDP2.6.1(the lastest version),error occurs. I had to use the version HDP2.5.1 . Could there be a connection?
Created 08-11-2017 08:22 AM
Hi, are you using HCP1.1.0.0 or HCP1.2.1.0 ?
BTW, you are right to use something in the range of HDP2.5.0 to HDP2.5.5. That should have no bearing on this problem. HDP2.6.x is not supported yet.
Created 08-14-2017 08:50 AM
Thank you for your help~
I installed it with follow article:
Metron 0.4.0 with HDP 2.5 bare-metal install on Centos 7 with MariaDB for Metron REST
In the paper, there didn't relate to the HCP version.
The main process is including metron 0.4.0, ambari 2.4 , hdp 2.5 and so on.
Thank you~
I decide to try it one by one, install it with different HDP versions...
Created 08-14-2017 12:09 PM
The source you used is outdated by now. Work is being done on new updated documentation.
HCP = Hortonworks Cybersecurity Package. You can download from HERE
It offers a complete package of mutually configured components which has many benefits over manually installing all separate components.
Created 08-14-2017 01:35 PM
Thank you , I have found the installation guide of HCP.
Thank you for your guidance !
Created 08-14-2017 09:00 AM
Or I mast install the HCP? is it a required item?
i am a new student in this area, my purpose is to build a running environment of metron.
Created 08-14-2017 12:59 AM
@asubramanian @msumbul @Frank Kam @Jasper
Who can help me please, MY HANDS ARE TIED....
Created 08-14-2017 11:11 AM
can you go to the Metron tab in ambari and check the following config details for Metron REST, and set these accordingly:
Metron JDBC Driver = org.h2.Driver Metron JDBC password = root Metron JDBC platform = h2 Metron JDBC URL = jdbc:h2:file:~/metrondb Metron JDBC username = root Active Spring profiles = dev<br>
Once the above are set, you can restart the REST and management UI services, after which you will be able to login to the management UI with the credentials admin/password.
Created 08-14-2017 11:53 AM
Thank you for your answer!
this is my config:
Metron JDBC Driver: com.mysql.jdbc.Driver Metron JDBC password: <DB PASSWORD> "metron" Metron JDBC platform: mysql Metron JDBC URL: jdbc:mysql://127.0.0.1:3306/<DB NAME>。"metrondb" Metron JDBC username: <DB USERNAME>。"metron"
Created 08-16-2017 07:32 AM
You need to set Metron Rest to use DEBUG level logging to have a clue what is going wrong:
1. Create a file 'log4j.properties' at $METRON_HOME/config/ with contents below:
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. log4j.rootLogger=DEBUG, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss.SSS} %-5p [%c] - %m%n
Then, set Metron Rest to use this file, in '/etc/init.d/metron-rest '
change this line:
DAEMON="$JAVA_HOME/bin/java $METRON_JVMFLAGS org.apache.metron.rest.MetronRestApplication $METRON_SPRING_OPTIONS"
into
DAEMON="$JAVA_HOME/bin/java -Dlog4j.configuration=file:$METRON_HOME/config/log4j.properties $METRON_JVMFLAGS org.apache.metron.rest.MetronRestApplication $METRON_SPRING_OPTIONS"
After restarting the metron-rest daemon, have a look at the metron-rest log file at /var/log/metron/metron-rest.log