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
#!/bin/bash | |
#https://cwiki.apache.org/confluence/display/AMBARI/Add+a+host+and+deploy+components+using+APIs | |
CLUSTER=cluster | |
IP=localhost | |
curl -H 'X-Requested-By: ambari' --user admin:admin -i -X GET http://${IP}:8080/api/v1/clusters/${CLUSTER}/hosts -o /tmp/hosts.txt | |
for host in `cat /tmp/hosts.txt | grep -i host_name | awk '{print $NF}' | sed 's|"||g'` |
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
<server description="Database Server Demonstration "> | |
<featureManager> | |
<feature>webProfile-7.0</feature> | |
<feature>localConnector-1.0</feature> | |
</featureManager> | |
<httpEndpoint host="*" httpPort="9080" httpsPort="9443" | |
id="defaultHttpEndpoint" /> | |
<applicationManager autoExpand="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
[PEM@db db2-updater]$ bin/tool/liquibase/liquibase --changeLogFile=`pwd`/bin/tool/liquibase/masterchangelog.xml --username=usernameXYZ --password=XYZPASS --url=jdbc:db2:DBP changelogSyncSQL | |
Liquibase Home: /home/myhomedir/db2-updater/bin/tool/liquibase | |
-- ********************************************************************* | |
-- SQL to add all changesets to database history table | |
-- ********************************************************************* | |
-- Change Log: /home/myhomedir/db2-updater/bin/tool/liquibase/masterchangelog.xml | |
-- Ran at: 7/6/18 3:43 PM | |
-- Against: XYZ@jdbc:db2:DBP | |
-- Liquibase version: 3.5.3 | |
-- ********************************************************************* |
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
curl -k -X GET -H "Content-type:application/json" "http://<kms-node>:16000/kms/v1/keyversion/<key-version>/_eek?ee_op=decrypt&user.name=hdfs" -v |
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
#YAML Demonstration | |
swagger: '2.0' | |
info: | |
title: Demonstration of Swagger Yaml with Enumeration | |
description: Simple Demonstration of Enumeration | |
version: "1.0.0" | |
host: api.bastide.org | |
schemes: | |
- https | |
basePath: /1 |
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
package demo.kerberos; | |
import javax.security.auth.*; | |
import javax.security.auth.login.*; | |
import javax.security.auth.callback.*; | |
import javax.security.auth.kerberos.*; | |
import java.io.*; | |
public class App { | |
public static void main(String[] args) { |
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
{ | |
"88" : { | |
"auth-1" : 8088 | |
} | |
} |
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
package test; | |
public Test { | |
// TODO add an implementation. | |
} |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>example</groupId> | |
<artifactId>resource-model-old</artifactId> | |
<version>3.0.0-SNAPSHOT</version> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<template encoding-version="1.3"> | |
<description></description> | |
<groupId>1aee98d5-0172-1000-7a2d-00d37a42e7da</groupId> | |
<name>Fhir Metadata Flow</name> | |
<snippet> | |
<connections> | |
<id>7fc1990d-d604-370e-0000-000000000000</id> | |
<parentGroupId>d7051a5f-6d05-30ab-0000-000000000000</parentGroupId> | |
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold> |