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
| for app in $(yarn application -list | awk '$6 == "RUNNING" { print $1 }') | |
| do | |
| echo "killing $app ..."; | |
| yarn application -kill "$app"; | |
| done |
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
| > also we found a safe way to restart executor | |
| > We can call "curl http://localhost:12321/executor?action=shutdown" | |
| > It puts executor to some shutown sate, but wait till evey job finishes | |
| > But you need to check with curl http://localhost:12321/executor?action=ping if executor is still alive, |
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
| hadoop jar /opt/cloudera/parcels/CDH/lib/solr/contrib/mr/search-mr-job.jar org.apache.solr.hadoop.HdfsFindTool -find /user/spark/applicationHistory -mtime +7 | xargs hdfs dfs -rm -r |
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
| /opt/hadoop/spark/bin/run-example SparkPi |
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
| parted -s /dev/sdf mklabel gpt -- mkpart primary ext4 1 -1 |
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
| for i in *.jar; do jar -tvf "$i" | grep -Hsi ShellBasedUnixGroupsMapping && echo "$i"; done |
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
| parted -s -a optimal /dev/sdm mklabel gpt -- mkpart dn12 ext4 1 -1 && mkfs.ext4 /dev/sdm1 |
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
| export HADOOP_CLIENT_OPTS="$HADOOP_CLIENT_OPTS -Xmx5g" |
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
| certbot certonly --webroot --agree-tos --email email@admin.aol -w /var/www/html/ -d domain.com -d www.domain.com |
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
| server { | |
| listen 80; | |
| server_name mysite.ru www.mysite.ru; | |
| root /var/www/mysite.ru; | |
| location /.well-known/acme-challenge/ { | |
| access_log off; | |
| default_type "text/plain"; | |
| } | |
| location / { | |
| rewrite ^(.*)$ https://mysite.ru permanent; |