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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
cd /opt && mkdir -p /opt/cloudera/parcels/ | |
yum -y group install "Development Tools" | |
yum -y install git maven gcc gcc-c++ wget curl curl-devel | |
yum -y install openssl openssl-devel epel-release | |
yum -y install gtest gtest-devel | |
wget https://cmake.org/files/v3.11/cmake-3.11.0-rc4-Linux-x86_64.sh | |
chmod 744 cmake-3.11.0-rc4-Linux-x86_64.sh | |
mv cmake-3.11.0-rc4-Linux-x86_64.sh /opt | |
cd /opt && echo y Y | sh /opt/cmake-3.11.0-rc4-Linux-x86_64.sh | |
PATH=/opt/cmake-3.11.0-rc4-Linux-x86_64/bin:${PATH} |
Two common cases which make the install of Python packages harder due to networking issues are: a) Install behind a Proxy b) Install without access to the internet
In the case where the target machine connects to the internet over a network proxy, export the following environment vars, as appropriate - http_proxy
and https_proxy
. Eg:
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.packages(c("zoo","data.table","FeatureHashing","xgboost","Matrix","dplyr","smbinning","ROCR")) | |
install.packages(c("xgboost","DiagrammeR")) | |
data(agaricus.train, package='xgboost') | |
library(xgboost) | |
bst <- xgboost(data = agaricus.train$data, label = agaricus.train$label, max_depth = 3, | |
eta = 1, nthread = 2, nrounds = 2,objective = "binary:logistic") |
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
set hive.auto.convert.join.noconditionaltask.size=200M; | |
set hive.auto.convert.join.noconditionaltask=true; | |
set hive.compute.query.using.stats=false; | |
set hive.exec.compress.intermediate=true; | |
set hive.exec.compress.output=true; | |
set hive.exec.dynamic.partition.mode=strict; | |
set hive.exec.dynamic.partition=true; | |
set hive.exec.max.created.files=100000; |
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
# Example EFM Config | |
# Web UI users authenticate using Knox SSO | |
# MiNiFi Agents authenticate using two-way TLS with client certificates | |
# Web Server TLS Properties | |
efm.server.ssl.enabled=true | |
efm.server.ssl.keyStore=./conf/keystore.jks | |
efm.server.ssl.keyStoreType=jks | |
efm.server.ssl.keyStorePassword=yourKeyStorePasswordHere | |
efm.server.ssl.keyPassword=yourKeyPasswordHere |