This file contains 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
[ec2-user@ip-172-31-3-208 nifi]$ cat privacera_nifi.json | |
{ | |
"isEnabled": "true", | |
"type": "nifi", | |
"configs": { | |
"username": "nifi" | |
}, | |
"name": "privacera_nifi", | |
"description": "nifi repo" | |
} |
This file contains 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
ambari-server stop | |
ambari-agent stop | |
pkill -9 java | |
################################# | |
# Remove Packages | |
################################ | |
yum -y remove ambari-\* | |
yum -y remove hcatalog\* | |
yum -y remove hive\* |
This file contains 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
neeraj_mac:emrfs-cf neerajsab$ ssh -i ~/.ssh/ns-privacera-prod.pem centos@34.229.52.168 | |
[centos@ip-172-31-41-233 ~]$ ssh-keygen | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/home/centos/.ssh/id_rsa): | |
Enter passphrase (empty for no passphrase): | |
Enter same passphrase again: | |
Your identification has been saved in /home/centos/.ssh/id_rsa. | |
Your public key has been saved in /home/centos/.ssh/id_rsa.pub. | |
The key fingerprint is: | |
SHA256:Y3A4qhJucOe2XXxzpdtD6OFcnlCRAYYPPNArIniyUBs centos@ip-172-31-41-233.ec2.internal |
This file contains 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
import subprocess,json,sys | |
def runAndGet(cmd,parse=False): | |
print(cmd) | |
dummy=raw_input() | |
try: | |
data = subprocess.check_output(cmd, shell=True) | |
except: | |
sys.exit(0) |
This file contains 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
import subprocess,json,sys | |
def runAndGet(cmd,parse=False): | |
print(cmd) | |
dummy=raw_input() | |
try: | |
data = subprocess.check_output(cmd, shell=True) | |
except: |
This file contains 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
—————————————————————————————————————— | |
*** Initial setup before Ambari setup *** | |
—————————————————————————————————————— | |
OS checks: | |
yum install wget |
This file contains 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
#Install R and then following packages | |
#repr failed to create | |
yum install R-* | |
install.packages("evaluate", dependencies = TRUE) | |
install.packages("base64enc", dependencies = TRUE) | |
install.packages("devtools", dependencies = TRUE) | |
install_github('IRkernel/repr') | |
install.packages("dplyr", dependencies = TRUE) | |
install.packages("caret", dependencies = TRUE) | |
install.packages("repr", dependencies = TRUE) |
This file contains 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
##Start cluster | |
/Users/neeraj/dse/bin/dse cassandra | |
## - Stop cluster | |
/Users/neeraj/dse/bin/dse cassandra-stop | |
## enable advanced replication | |
vi /Users/neeraj/dse/resources/dse/conf/dse.yaml | |
./nodetool status | |
export CQLSH_HOST=192.168.1.185 | |
./cqlsh | |
# run this in edge and hub cluster |
This file contains 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
su - hdfs | |
git clone https://github.com/pivotalsoftware/pivotal-samples.git | |
# I copied the files on /mnt | |
cd /mnt/pivotal-samples/sample-data | |
# load data into HDFS | |
sh -x load_data_to_HDFS.sh ## it will show you the output of the commands the script is running | |
hdfs dfs -ls /retail_demo | |
#### Hive table ##### | |
https://github.com/pivotalsoftware/pivotal-samples/blob/master/hive/create_hive_tables.sql |
This file contains 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
## git clone https://github.com/Banno/druid-docker | |
## git clone https://github.com/zcox/druid-pageviews | |
cd druid-docker | |
fig kill && fig rm --force | |
./build.sh | |
fig up -d druid | |
#### docker | |
## `boot2docker shellinit` | |
## docker ps | |
## |
NewerOlder