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
object HelloWorld { | |
def main(args: Array[String]) { | |
println("Hello world!") | |
} | |
} |
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
./sbin/start-master.sh | |
--------------------------- | |
Spark Command: /opt/ngs/setups/jdk1.8.0_191/bin/java -cp /opt/ngs/ashishb/packages/spark-2.4.3-bin-hadoop2.7/conf/:/opt/ngs/ashishb/packages/spark-2.4.3-bin-hadoop2.7/jars/* -Xmx1g org.apache.spark.deploy.master.Master --host hdpdev6 --port 7077 --webui-port 8080 | |
======================================== | |
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties | |
19/08/14 19:18:48 INFO Master: Started daemon with process name: 51863@hdpdev6 | |
19/08/14 19:18:48 INFO SignalUtils: Registered signal handler for TERM | |
19/08/14 19:18:48 INFO SignalUtils: Registered signal handler for HUP |
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
#Create a topic | |
$KAFKA_HOME/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic streams-plaintext-input | |
#Create a topic with config | |
$KAFKA_HOME/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic streams-wordcount-output --config cleanup.policy=compact | |
#Run an example | |
$KAFKA_HOME/bin/kafka-run-class.sh org.apache.kafka.streams.examples.wordcount.WordCountDemo | |
#Start console producer |
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
#Garbage Collection Tuning | |
-server | |
-Xms10g | |
-Xmx10g | |
-XX:+AlwaysPreTouch | |
-XX:+UseG1GC | |
-XX:+ScavengeBeforeFullGC | |
-XX:+DisableExplicitGC | |
#Getting Heap Dump on Out of Memory Errors |
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
cluster.name: elasticsearch-dev | |
node.name: node-1 | |
network.host: 0.0.0.0 | |
discovery.seed_hosts: ["172.17.5.31", "172.17.5.35", "172.17.5.36"] | |
discovery.zen.minimum_master_nodes: 2 | |
cluster.initial_master_nodes: ["node-1", "node-2", "node-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
var xmlhttp = new XMLHttpRequest(); | |
var url = "https://http-hunt.thoughtworks-labs.net/challenge/input"; | |
xmlhttp.onreadystatechange = function () { | |
if (this.readyState == 4 && this.status == 200) { | |
var resp = JSON.parse(this.responseText); | |
console.log("resp: ", resp); | |
var count = resp.text.length; | |
console.log("count: " + count); |
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
Get SSL certificate from server (Site URL). You can refer below URL | |
https://www.shellhacks.com/get-ssl-certificate-from-server-site-url-export-download/ | |
Use Java's keytool utility to add downloaded certificate to Java's keystore | |
keytool -importcert -file <path-of-certificate> -keystore <keystore-file> -alias <certificate-alias> | |
i.e. keytool -importcert -file E:\certs\some-site.cer -keystore "E:\sw\jdk1.8.0_112\jre\lib\security\cacerts" -alias "some-site" | |
Now you will be able to access HTTPS URLs | |
Common issues when downloading dependencies from repositories URLs |
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
[hdpusr@hdpdev6 kafka_2.12-2.3.0]$ cat config/connect-standalone.properties | |
bootstrap.servers=localhost:7092 | |
key.converter=org.apache.kafka.connect.json.JsonConverter | |
value.converter=org.apache.kafka.connect.json.JsonConverter | |
key.converter.schemas.enable=true | |
value.converter.schemas.enable=true | |
offset.storage.file.filename=/tmp/connect.offsets | |
offset.flush.interval.ms=10000 |
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
2019-12-31 13:23:28.035 INFO 50839 --- [main] poc.ignite.IgniteApp : Starting IgniteApp v0.0.1-SNAPSHOT on hdpdev6 with PID 50839 (/opt/ngs/ashishb/apps/ignite/ignite-persistence-data-node/ignite-persistence-data-node-0.0.1-SNAPSHOT.jar started by hdpusr in /opt/ngs/ashishb/apps/ignite/ignite-persistence-data-node) | |
2019-12-31 13:23:28.038 DEBUG 50839 --- [main] poc.ignite.IgniteApp : Running with Spring Boot v2.1.6.RELEASE, Spring v5.1.8.RELEASE | |
2019-12-31 13:23:28.038 INFO 50839 --- [main] poc.ignite.IgniteApp : No active profile set, falling back to default profiles: default | |
2019-12-31 13:23:28.740 INFO 50839 --- [main] poc.ignite.config.BeansConfig : ignite bean service | |
2019-12-31 13:23:28.956 WARN 50839 --- [main] o.apache.ignite.internal.util.typedef.G : Ignite work directory is not provided, automatically resolved to: /opt/ngs/setups/apache-ignite-fabric-2.6.0-bin/work | |
2019-12-31 13:23:29.108 INFO 50839 --- [main] org.apache.ig |
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
npm config set https-proxy http://172.20.7.21:8080 | |
npm config set http-proxy http://172.20.7.21:8080 | |
npm config set proxy http://172.20.7.21:8080 | |
npm config set registry "http://registry.npmjs.org" | |
npm config set strict-ssl false | |
OlderNewer