Skip to content

Instantly share code, notes, and snippets.

@TomonoriSoejima
Last active June 17, 2017 05:33
Show Gist options
  • Save TomonoriSoejima/fb9be79d56300eb71b762d1307611953 to your computer and use it in GitHub Desktop.
Save TomonoriSoejima/fb9be79d56300eb71b762d1307611953 to your computer and use it in GitHub Desktop.
hadoop plugin memo
# hdfs getconf -confKey fs.default.name
# when you run into error in connecting to hadoop, run above.
# Then the output is what you need to specify at uri in settngs.
PUT _snapshot/tomo_repository
{
"type": "hdfs",
"settings": {
"uri": "hdfs://localhost:9000/",
"path": "/user/surfer"
}
}
PUT /_snapshot/tomo_repository/snapshot_2?wait_for_completion=true
{
"indices": "hotel",
"include_global_state": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment