Using Ambari Core Services
Also available as:
PDF
loading table of contents...

Example save indexed data

A working example of saving indexed data.

Saving is similar to Archiving data except that the data is not deleted from Solr after the files are created and uploaded. The Save mode is recommended for testing that the data is written as expected before running the program in Archive mode with the same parameters.

The below example will save the last 3 days of hdfs audit logs into HDFS path "/" with the user hdfs, fetching data from a kerberized Solr.

infra-solr-data-manager -m save -s 
http://c6401.ambari.apache.org:8886/solr -c audit_logs -f logtime -d 3 
-r 10 -w 100 -q type:\”hdfs_audit\” -j hdfs_audit -k
/etc/security/keytabs/ambari-infra-solr.service.keytab -n
infra-solr/c6401.ambari.apache.org@AMBARI.APACHE.ORG -u hdfs -p /