Last active
August 29, 2015 14:07
-
-
Save bepcyc/25dd18f039b4053cd10a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # add these lines to .bashrc or to the other start script | |
| export SEARCH_MR_JOB_JAR="/opt/cloudera/parcels/CDH/lib/solr/contrib/mr/search-mr-job.jar" | |
| alias dfsFind="hadoop jar ${SEARCH_MR_JOB_JAR} org.apache.solr.hadoop.HdfsFindTool" | |
| #alias MapReduceIndexerTool="hadoop jar ${SEARCH_MR_JOB_JAR} org.apache.solr.hadoop.MapReduceIndexerTool" | |
| # use it like regular find: | |
| # dfsFind / -name "*.snappy" | grep flume |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment