Member since
07-14-2016
215
Posts
45
Kudos Received
16
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2199 | 12-13-2018 05:01 PM | |
4939 | 09-07-2018 06:12 AM | |
2062 | 08-02-2018 07:04 AM | |
2258 | 03-26-2018 07:38 AM | |
1440 | 12-06-2017 07:53 AM |
09-26-2018
06:56 AM
Hey @Nor Liana
Kamaruzzaman, this definitely looks to me like an issue with the Docker version. This error message especially: "Sending build context to Docker daemon ", "[ERROR] Command execution failed.", "org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)", "\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)", "\tat Would you be able to bring up a CentOS 7 environment afresh? It looks like the Docker pre-requisites asks for CentOS7. Here is an excerpt from their docs: https://docs.docker.com/install/linux/docker-ce/centos/#prerequisites OS requirements To install Docker CE, you need a maintained version of CentOS 7. Archived versions aren’t supported or tested.
... View more
09-24-2018
08:49 AM
Hm.. that is strange. I see from your output of platform-info.sh that you have the right version of the vagrant hostmanager plugin (ver 1.8.9). The one difference I see is that your machine is named as ' default ', while it should show as ' node1 '. See sample output from my box. Observe the logs..
➜ ~ vagrant up
Running with ansible-skip-tags: ["sensors"]
Bringing machine 'node1' up with 'virtualbox' provider...
==> node1: Importing base box 'centos/6'...
==> node1: Matching MAC address for NAT networking...
==> node1: Checking if box 'centos/6' is up to date...
==> node1: Setting the name of the VM: centos6_node1_1537451480618_72587
==> node1: Clearing any previously set network interfaces...
==> node1: Preparing network interfaces based on configuration...
node1: Adapter 1: nat
node1: Adapter 2: hostonly
==> node1: Forwarding ports...
node1: 22 (guest) => 2222 (host) (adapter 1)
==> node1: Running 'pre-boot' VM customizations...
==> node1: Booting VM...
==> node1: Waiting for machine to boot. This may take a few minutes...
node1: SSH address: 127.0.0.1:2222
node1: SSH username: vagrant
node1: SSH auth method: private key
node1:
node1: Vagrant insecure key detected. Vagrant will automatically replace
node1: this with a newly generated keypair for better security.
node1:
node1: Inserting generated public key within guest...
node1: Removing insecure key from the guest if it's present...
node1: Key inserted! Disconnecting and reconnecting using new SSH key...
==> node1: Machine booted and ready!
==> node1: Checking for guest additions in VM...
node1: No guest additions were detected on the base box for this VM! Guest
node1: additions are required for forwarded ports, shared folders, host only
node1: networking, and more. If SSH fails on this machine, please install
node1: the guest additions and repackage the box to continue.
node1:
node1: This is not an error message; everything may continue to work properly,
node1: in which case you may ignore this message.
==> node1: Setting hostname...
==> node1: Configuring and enabling network interfaces...
node1: SSH address: 127.0.0.1:2222
node1: SSH username: vagrant
node1: SSH auth method: private key
==> node1: Rsyncing folder: /Users/asubramanian/Desktop/Metron/anand-metron-fork/shane-cypress-test/metron/metron-deployment/development/centos6/ => /vagrant
==> node1: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
==> node1: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
Password:
==> node1: Running provisioner: ansible...
node1: Running ansible-playbook...
PLAY [all] *********************************************************************
<br>
Can you confirm that you are running the vagrant up command from the following folder location: metron/metron-deployment/development/centos6 Also, as suggested by @Otto Fowler, can you try to compile outside of the full-dev deployment and see if that works?
You can do this like follows and look for any failures in the output.:
cd <root-level-metron-folder>
mvn clean package
I would also like to look at your Vagrantfile at the following location. Can you attach it? metron/metron-deployment/development/centos6/Vagrantfile
... View more
09-21-2018
04:46 PM
Hi @Nor Liana
Kamaruzzaman
, the vagrant folder not being present seems to be okay. Did the vagrant up command proceed further after upgrading the node and npm?
... View more
09-18-2018
12:59 PM
Looks like the node and npm versions are still old. You can grab the ver 9.11.2 version of nodejs from here - https://nodejs.org/download/release/v9.11.2/
... View more
09-18-2018
08:20 AM
Yes, it means Docker is running. However I see that it is an old version. Can you try with a more recent version of Docker and node ?
... View more
09-07-2018
06:12 AM
Hi
@Nor Liana
Kamaruzzaman
,
I compared with my environment and see a couple of differences...
Here's my output of the platform-info script
➜ metron git:(master) ./metron-deployment/scripts/platform-info.sh
Metron 0.5.1
--
* master
--
commit d32bd50d43aae87af9ec12d2daea83b2f4eca342 (HEAD -> master, origin/master, origin/HEAD)
Author: nickwallen <nick@nickallen.org>
Date: Wed Aug 29 14:55:58 2018 -0400
METRON-1751 Storm Profiler dies when consuming null message (nickwallen) closes apache/metron#1176
--
--
ansible 2.2.2.0
config file =
configured module search path = Default w/o overrides
--
Vagrant 2.0.2
--
vagrant-hostmanager (1.8.9)
--
Python 2.7.15
--
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T00:03:14+05:30)
Maven home: /usr/local/Cellar/maven/3.5.4/libexec
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"
--
Docker version 17.12.0-ce, build c97c6d6
--
node
v9.11.1
--
npm
5.6.0
--
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
--
Compiler is C++11 compliant
--
Darwin HW10098-2.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
--
Total System Memory = 16384 MB
Processor Model: Intel(R) Core(TM) i7-4770HQ CPU
Processor Speed: 2.20GHz
Total Physical Processors: 4
Total cores: 4
Disk information:
/dev/disk1s1 466Gi 187Gi 276Gi 41% 1849664 9223372036852926143 0% /
/dev/disk1s4 466Gi 2.0Gi 276Gi 1% 2 9223372036854775805 0% /private/var/vm
This CPU appears to support virtualization
From your output, I can see that the version of Docker and Node/npm are dated. Can you upgrade Docker to a recent version and node to ver 9.x and give it a try again?
... View more
09-03-2018
11:22 AM
Hello @Rudy Hartono,
You can disable writing into HDFS per sensor by changing the 'enabled' indexing configuration under $METRON_HOME/config/zookeeper/indexing/<your-sensor>.json
For e.g., here's a sample for the bro sensor: [metron@metron-1 ~]$ cat $METRON_HOME/config/zookeeper/indexing/bro.json
{
"hdfs" : {
"index": "bro",
"batchSize": 5,
"enabled" : true
},
"elasticsearch" : {
"index": "bro",
"batchSize": 5,
"enabled" : true
},
"solr" : {
"index": "bro",
"batchSize": 5,
"enabled" : true
}
}
Note: Once you change the configuration, you need to use the 'zk_load_configs.sh' command to push the config changes into ZK. Refer here for more details. As to your other question.. for metron, HDFS serves as an archival store for an analyst to refer to at a later stage. As of now, the UI interface does not make use of the archived data for fetching events.
... View more
08-30-2018
06:22 AM
Hi @Nor Liana
Kamaruzzaman
, The docker and npm not getting listed should not happen. Also, I notice that you are using an older version of Metron (0.3.1). Can you try with a more recent version? i.e. Metron 0.5.0 (which is released) or 0.5.1 (master).
... View more
08-27-2018
03:49 AM
Hi @Nor Liana
Kamaruzzaman
, Yes, docker and nodejs are requisites. Here is a more recent version of the README for Ubuntu: https://github.com/apache/metron/tree/master/metron-deployment/development/ubuntu14 Let me know how it goes.
... View more
08-07-2018
05:57 AM
I'm afraid you will have to take your IT team's help in resolving the connection timeout issue since it is environment specific.
... View more
08-06-2018
02:58 PM
Looks like the settings are still not correct per this message: Connect to repo.hortonworks.com:80 [repo.hortonworks.com/54.225.131.199] failed: Connection timed out (Connection timed out)
... View more
08-02-2018
07:36 AM
@Rakesh S - refer to http://dev.hortonworks.com.s3.amazonaws.com/HDPDocuments/Ambari-Trunk/bk_ambari-installation/content/ch_using-local-repos.html
... View more
08-02-2018
07:04 AM
1 Kudo
Here are the tarball download links for HCP binaries which can be used to setup a local repository. The links are for HCP 1.5.1.0 release http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-alerts-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-common-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-config-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-data-management-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-elasticsearch-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-enrichment-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-indexing-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-maas-service-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-metron-management-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-parsers-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-pcap-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-performance-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-profiler-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-rest-0.5.1.1.5.1.0-16.noarch.rpm
http://public-repo-1.hortonworks.com/HCP/centos7/1.x/updates/1.5.1.0/metron/metron_1_5_1_0_16-solr-0.5.1.1.5.1.0-16.noarch.rpm
Make a "/localrepo" folder and copy all the above files into it. Then create your local repository using the following commands: mkdir -p /localrepo
# copy all metron RPMs into /localrepo
createrepo /localrepo
... View more
08-01-2018
04:56 AM
Hello @Nor Liana
Kamaruzzaman
, welcome to Metron!
Can you tell more about which version of metron you are trying to use? And about your setup where are trying to do this?
The simplest way to get Metron up and running is to follow these steps:
https://github.com/apache/metron/tree/master/metron-deployment/development/centos6
Get the pre-requisites installed and deploy metron.
If you happen to run into any issues, please post the error output and also the output of the script metron-deployment/scripts/platform-info.sh
... View more
08-01-2018
04:49 AM
If you're trying on a baremetal CentOS 7, try these instructions: https://cwiki.apache.org/confluence/display/METRON/Metron+0.4.1+with+HDP+2.5+bare-metal+install+on+Centos+7+with+MariaDB+for+Metron+REST
... View more
07-30-2018
02:55 PM
Hey @Gowdaman
G, here's a link that shows how to setup Metron on a single node setup: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=68718548 Can you give this a try?
... View more
07-27-2018
06:07 AM
I noticed that your node and NPM versions are pretty old. Can you upgrade to latest? Here are my versions: node
v10.6.0
--
npm
6.1.0
--
... View more
07-26-2018
02:25 PM
Okay, from the below message it looks like maven is not able to reach the mirror. I think you need to review your maven settings.xml to see if it is in order. Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.7: Could not transfer artifact org.apache.maven.plugins:maven-site-plugin:pom:3.7 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.12.215] failed: Connection timed out (Connection timed out)
... View more
07-26-2018
12:57 PM
Quick tip: You can use the 'CODE' in the editing toolbar to make command output look more readable.
... View more
07-26-2018
12:54 PM
@Gowdaman
G
Can you run the script at metron-deployment/scripts/platform-info.sh and paste the output here?
... View more
07-11-2018
09:45 AM
Hello @Lija Mohan,
The Metron full dev deployment is tightly knit only to work on linux or mac OS'. Windows is unsupported. Please try on one of the *nix platform.
As an additional note, you can run the metron-deployment/scripts/platform-info.sh script to ascertain if you have met the install pre-requisites.
... View more
05-24-2018
09:28 AM
1 Kudo
About this article
The Metron tutorial article for adding Squid telemetry walks through the process of creating the parser from scratch for Elasticsearch as the Indexing service.
This article gives details of extending the tutorial for getting Squid telemetry working with Solr as the backend Indexing service.
In other words, these steps are an equivalent of "Installing Squid parser template" for the Elasticsearch.
Pre-requisites
HCP >= 1.5.0.0
HDP search >= 3.0.0
It is assumed that you have deployed a HCP stack with Solr by following the HCP documentation
The Solr node is co-located with the Metron node.
In the event that these nodes are on different hosts, ensure that you copy the Metron schema files located at $METRON_HOME/config/schema to the Solr node.
It is also assumed that you have followed the Metron tutorial for Squid telemtry by installing the squid sensor, creating the kafka topic and have started the storm topology
Steps
1. SSH to the Metron host and run the following commands
cd $METRON_HOME/config/schema
mkdir squid
cd squid
Copy the attached files (schema.xml and solrconfig,xml) into the 'squid' folder created above.
2. Run the following commands on the Metron host to create a Solr collection for Squid
export SOLR_HOME=/opt/lucidworks-hdpsearch/solr/
export SOLR_USER=solr
su $SOLR_USER -c "$SOLR_HOME/bin/solr create -c squid -d $METRON_HOME/config/schema/squid/"
3. Go to the Solr UI at http://<solr-host>:8983/solr/#/~collections to confirm that the Squid collection is present
4. Ingest events into the 'squid' kafka topic and you should see documents being written into the Squid collection in Solr.
5. Fire up Alerts UI and verify that Squid events are seen.
... View more
- Find more articles tagged with:
- CyberSecurity
- FAQ
- Metron
- solr
- squid
Labels:
05-24-2018
09:14 AM
Did you restart the Indexing topology after the change? Note that you might have to restart from command line, since Ambari will not allow stopping of an (already) stopped service. Can you post the version of python-requests you are running?
... View more
05-10-2018
10:44 AM
2 Kudos
Problem
On some of the HCP deployments, the Indexing topology might show up as "stopped, while the actual topology might be running (when you check in Storm UI).
Additionally, one might also see the following kind of error messages in ambari-agent,log.
INFO 2018-02-05 22:21:39,990 PythonReflectiveExecutor.py:67 - Reflective command failed with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/PythonReflectiveExecutor.py", line 59, in run_file
imp.load_source('__main__', script)
File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.3/package/scripts/indexing_master.py", line 18, in <module>
import requests
File "/usr/lib/python2.6/site-packages/requests/__init__.py", line 53, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/usr/lib/python2.6/site-packages/requests/packages/__init__.py", line 61, in load_module
if name in sys.modules:
AttributeError: 'NoneType' object has no attribute 'modules'
Reasoning
If the above symptoms are true, you are most likely seeing METRON-1451
Solution
Install version 2.61. of python-requests on the server pip install requests==2.6.1 Restart the Indexing topology to resolve the issue.
... View more
- Find more articles tagged with:
- CyberSecurity
- FAQ
- indexing
- Metron
Labels:
04-16-2018
07:40 AM
@Anil Reddy, @Maxim Dashenko Could you guys give this a try with from the master? It seems to work fine for me. I recall that a similar issue was addressed in the recent past (I am unable to find the PR number, though). Regarding #1 in the question, it is an expected behavior. The Alerts UI is expected to fetch all indices created in the Elasticsearch, so long as the event source has the nested alert field definition present in the event template. Here's an example: $ curl -XGET 'http://node1:9200/_template/squid_index' -d
<snip>
"alert": { "type": "nested" },
<snip> So, in essence, the Alerts UI is more like an investigator UI. The name "Alerts" is a bit misleading.
... View more
04-03-2018
11:30 AM
Here's the issue... you need to install docker ./platform-info.sh: line 64: docker: command not found
... View more
04-03-2018
09:50 AM
@Gaurav Bapat I am assuming you have provided the right switch for the command (is that a typo in your comment when you said '-PbuildRmps'?) Can you check if Docker service is up and running ? Please paste the output of metron-deployment/scripts/platform-info.sh as well.
... View more
03-28-2018
08:55 AM
Hm.. this error seems different than the earlier one. Can you list the version of urllib3 ? (pip list | grep url)
... View more
03-28-2018
07:05 AM
ok.. can you install the following version of requests and check if things work? pip install requests==2.6.1
... View more
03-28-2018
06:29 AM
Also, can you describe your test environment more... * full dev or bare metal * version of Metron
... View more