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
| curl -X POST -d http://master-host:6066/v1/submissions/create --header "Content-Type:application/json" --data '{ | |
| "action": "CreateSubmissionRequest", | |
| "appResource": "hdfs://localhost:9000/user/spark-examples_2.11-2.0.0.jar", | |
| "clientSparkVersion": "2.0.0", | |
| "appArgs": [ "10" ], | |
| "environmentVariables" : { | |
| "SPARK_ENV_LOADED" : "1" | |
| }, | |
| "mainClass": "org.apache.spark.examples.SparkPi", | |
| "sparkProperties": { |
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
| Este comando añade al alias 'alias1' el índice 'test1': | |
| curl -XPOST http://elastic:9200/_aliases --data '{ "actions" : [ { "add" : { "index" : "test1", "alias" : "alias1" } } ] }'' | |
| Este comando elimina del alias 'alias1' el índice 'test1': | |
| curl -XPOST http://elastic:9200/_aliases --data '{ "actions" : [ { "remove" : { "index" : "test1", "alias" : "alias1" } } ] }' | |
| Este comando quita 'test1' y añade 'test2' simultáneamente al 'alias1' (en esencia un rename): | |
| curl -XPOST http://elastic:9200/_aliases --data '{ "actions" : [ { "remove" : { "index" : "test1", "alias" : "alias1" } }, { "add" : { "index" : "test2", "alias" : "alias1" } } ] }' | |
| Si lees la entrada https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html de la documentación |
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
| #!/usr/bin/expect -f | |
| set ssh_host "172.19.10.80" | |
| set ssh_user "user" | |
| set ssh_password "password" | |
| set dest_host "172.19.10.91" | |
| set dest_port 8080 | |
| set local_port 80 | |
| set timeout -1 | |
| spawn ssh -N $ssh_user@$ssh_host -L 127.0.0.1:$local_port:$dest_host:$dest_port |
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
| ############################################################ | |
| ### Gem file to install GITLAB on Raspberry-Pi | |
| ############################################################ | |
| source "http://rubygems.org" | |
| gem "rails", "3.2.5" | |
| # Supported DBs | |
| gem "sqlite3" | |
| gem "mysql2" |
NewerOlder