Skip to content

Instantly share code, notes, and snippets.

View matyix's full-sized avatar
🏄‍♂️
Banzai Pipeline

Janos Matyas matyix

🏄‍♂️
Banzai Pipeline
View GitHub Profile
# make test
cd linter; \
./pslint_selftest.sh; \
./pslint.py ../public_suffix_list.dat;
test_NFKC: OK
test_allowedchars: OK
test_dots: OK
test_duplicate: OK
test_exception: OK
test_punycode: OK
# make test
cd linter; \
./pslint_selftest.sh; \
./pslint.py ../public_suffix_list.dat;
test_NFKC: OK
test_allowedchars: OK
test_dots: OK
test_duplicate: OK
test_exception: OK
test_punycode: OK

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Banzai Cloud Corporation and its affiliates (“Banzai Cloud”) for Your contributions to Banzai Cloud open source projects. This Agreement is effective as of the latest signature date below.

Definitions. “Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Banzai Cloud under this Agreement. Project” means any of the projects owned or managed by Banzai Cloud and offered under a license approved by the Open Source Initiative (www.opensource.org). “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any Project, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of di

autoscalinggroup.go
Apply
logger.Debug("Actual ASG state - %v", actual.(*Asg))
logger.Debug("Expected ASG state - %v", expected.(*Asg))
launchconfiguration.go
Apply
logger.Debug("%v", actual.(*Lc))
{
"configurations": [
{
"ams-env": {
"properties": {
"ambari_metrics_user": "ams",
"content": "\n# Set environment variables here.\n\n# The java implementation to use. Java 1.6 required.\nexport JAVA_HOME={{java64_home}}\n\n# Collector Log directory for log4j\nexport AMS_COLLECTOR_LOG_DIR={{ams_collector_log_dir}}\n\n# Monitor Log directory for outfile\nexport AMS_MONITOR_LOG_DIR={{ams_monitor_log_dir}}\n\n# Collector pid directory\nexport AMS_COLLECTOR_PID_DIR={{ams_collector_pid_dir}}\n\n# Monitor pid directory\nexport AMS_MONITOR_PID_DIR={{ams_monitor_pid_dir}}\n\n# AMS HBase pid directory\nexport AMS_HBASE_PID_DIR={{hbase_pid_dir}}\n\n# AMS Collector heapsize\nexport AMS_COLLECTOR_HEAPSIZE={{metrics_collector_heapsize}}\n\n# AMS Collector options\nexport AMS_COLLECTOR_OPTS=\"-Djava.library.path=/usr/lib/ams-hbase/lib/hadoop-native -Xmx$AMS_COLLECTOR_HEAPSIZE \"\n{% if security_enabled %}\nexport AMS_COLLECTOR_OPTS=\"$AMS_COLLECTOR_OPTS -Djava.security.auth.login.con
@matyix
matyix / multi-node-hdfs-yarn
Created December 4, 2014 14:07
HDP 2.2 multi-node blueprint
{
"configurations": [
{
"nagios-env": {
"nagios_contact": "admin@localhost"
}
}
],
"host_groups": [
{
@matyix
matyix / hdp-multi-storm
Last active August 29, 2015 14:07
hdp-multi-storm
{
"configurations" : [
{
"global" : {
"nagios_contact" : "admin@localhost"
}
}
],
"host_groups" : [
{
@matyix
matyix / multi-ambari-docker
Last active August 29, 2015 14:02
Multi host Ambari
sudo route add -net 172.21.0.0/16 192.168.59.103
Ambari Master
docker run -d --dns 127.0.0.1 --name amb0 -h amb0.mycorp.kom sequenceiq/ambari:multi /usr/local/serf/bin/start-serf-agent.sh --tag ambari-role=server,agent
#Ambari Agent 1
docker run -d -e SERF_JOIN_IP=172.21.0.2 --dns 127.0.0.1 --name amb1 -h amb1.mycorp.kom sequenceiq/ambari:multi /usr/local/serf/bin/start-serf-agent.sh --tag ambari-role=agent
#Ambari Agent 2
docker run -d -e SERF_JOIN_IP=172.21.0.2 --dns 127.0.0.1 --name amb2 -h amb2.mycorp.kom sequenceiq/ambari:multi /usr/local/serf/bin/start-serf-agent.sh --tag ambari-role=agent
@matyix
matyix / README.md
Last active August 29, 2015 14:01
ambari-shell demo

##Start Docker

docker-kill-last
dpsa
docker run -d -h server.ambari.com --dns 127.0.0.1 --name ambari sequenceiq/ambari 
	-d damon (background)
	-h hostname
	--dns get the DNS from the host
	--name name
@matyix
matyix / Hoya-exception
Created March 17, 2014 09:59
Hoya exception - Application doesn't exist in cache
2014-03-17 10:41:31,833 [AMRM Callback Handler Thread] INFO HoyaAppMaster.yarn - Shutdown Request received
2014-03-17 10:41:31,841 [AMRM Callback Handler Thread] INFO impl.AMRMClientAsyncImpl - Shutdown requested. Stopping callback.
2014-03-17 10:41:32,841 [main] INFO appmaster.HoyaAppMaster - Triggering shutdown of the AM: Shutdown requested from RM
2014-03-17 10:41:32,842 [main] INFO appmaster.HoyaAppMaster - Process has exited with exit code 0 mapped to 0 -ignoring
2014-03-17 10:41:32,843 [main] INFO state.AppState - Releasing 1 containers
2014-03-17 10:41:32,843 [main] INFO appmaster.HoyaAppMaster - Application completed. Signalling finish to RM
2014-03-17 10:41:32,843 [main] INFO appmaster.HoyaAppMaster - Unregistering AM status=FAILED message=Shutdown requested from RM
2014-03-17 10:41:32,855 [main] INFO appmaster.HoyaAppMaster - Failed to unregister application: org.apache.hadoop.yarn.exceptions.InvalidApplicationMasterRequestException: Application doesn't exist in cache appattempt_139504910217