To use Atom editor behind proxy , use the below. Restart Atom if needed
apm config set strict-ssl false
apm config set https-proxy http://127.0.0.1:3128Change proxy as per your requirements
To use Atom editor behind proxy , use the below. Restart Atom if needed
apm config set strict-ssl false
apm config set https-proxy http://127.0.0.1:3128Change proxy as per your requirements
kdestroy
kinit -k -t myprincipal.keytab myprincipal/HOST.com
export KAFKA_CLIENT_KERBEROS_PARAMS="-Djava.security.auth.login.config=/etc/kafka/conf/kafka_client_jaas.conf"
/usr/hdp/current/kafka-broker/bin/kafka-console-consumer.sh \
--zookeeper zookeeper.com:2181 \
--topic topicname \
--from-beginning \
--security-protocol SASL_PLAINTEXT
Step 0
Get all pods
kubectl get po --all-namespaces
Find the pod name in which your container is running
Step 1
Get the container name from running pod
kubectl describe po pod_name --namespace my_namespace
Example output
Name: pod_name
Namespace: my_namespace
Node: docker-host-03/10.1.3.115
Start Time: Wed, 23 Nov 2016 16:57:15 +1100
Labels: name=my_container_name,pod-template-hash=2802333548
Status: Running
IP: 10.20.71.4
Note the label with value name
Step 2
Login to container
Example
kubectl exec -it pod_name --namespace my_namespace -c my_container_name bash
Even if I have read all of my Linkedin messages , it still shows one unread message. Strange but true.
I am not sure what is the problem but i can tell how i fixed that.
See , if you notice any change in unread messages indicator ?
For me it changed correctly and then I read both messages one by one and it made my all messages as Read.
Have great time using Linkedin :)
Regular expressions are like swiss knife which can do lot of work in small amount of code.
However knowing them deeply is very important to write code which is optimal.
I found below good websites for them while using and learning about them.
A very good website to have visual debugging for Regular expressions
https://www.debuggex.com/
Website to create and test regular expressions
http://regexr.com/
https://regex101.com/
A good website for Regular expressions tutorials
http://www.rexegg.com/
project > plugins.sbt and add the pluginaddSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.1.1")src/main/rpm/pre%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-java-repack-jars[[:space:]].*$!!g' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')bra-java-repack-jars and brb-python-bytecompile process from pre step of RPM installation.import RpmConstants._ maintainerScripts in Rpm := maintainerScriptsAppendFromFile((maintainerScripts in Rpm).value)( Pre -> (sourceDirectory.value / "main" / "rpm" / "pre") )
rpm.sbt is shown belowimport sbt.Keys._
import NativePackagerHelper._
enablePlugins(UniversalPlugin)
enablePlugins(RpmPlugin, RpmDeployPlugin)
maintainer in Linux := "admin@mail.com"
packageSummary in Linux := "Package code"
packageDescription := s"Application ${name.value}"
rpmVendor := "My company"
version in Rpm <<= version { (v: String) =>
v.trim.replace("-SNAPSHOT", s".${System.currentTimeMillis}")
}
rpmLicense := Option("Apache")
rpmObsoletes := Seq(s"${name.value}")
// This does not work
rpmBrpJavaRepackJars := false
defaultLinuxInstallLocation := "/var/lib/airflow"
// This allows to override the install location using RPM prefix
rpmPrefix := Some(defaultLinuxInstallLocation.value)
import RpmConstants._
// Remove all jars
mappings in Universal := (mappings in Universal).value.filterNot{
case (file, fname) => fname.endsWith(".jar")}
// Add fat jar
mappings in Universal += {
val fatJar = (assembly in Compile).value
fatJar -> s"${name.value}.jar"
}
// Copy contents of dags folder
mappings in Universal ++= directory("src/main/dags")
// Add version.txt file
mappings in Universal += {
val file = target.value / "version.txt"
IO.write(file, s"${(version in Rpm).value}")
file -> "version.txt"
}
import RpmConstants._
maintainerScripts in Rpm := maintainerScriptsAppendFromFile(
(maintainerScripts in Rpm).value)(
Pre -> (sourceDirectory.value / "main" / "rpm" / "pre")
)
publishTo <<= version { (v: String) =>
val artifactory = "https://artifactory.com/"
if (v.trim.endsWith("SNAPSHOT"))
Some("Artifactory Realm" at artifactory + "artifactory/rpm-snapshots")
else
Some("Artifactory Realm" at artifactory + "artifactory/rpm-releases/")
}rpm:packageBinrpm:publish