- Create "default-elasticsearch" security group with following Inbound rules:
- 22/TCP to 0.0.0.0 or private ip
- 9200/TCP to {public IPs of all nodes in cluster}
- 9300/TCP to {public IPs of all nodes in cluster}
- Create instance with security group "default-elasticsearch"
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 Iso7064Util { | |
object Mod_11_10 { | |
def calculateControlChar(input: String): String = { | |
var rest = 10 | |
input.map(_.asDigit).foreach { num => | |
val sum = num + rest | |
val subtotal = if (sum % 10 == 0) 10 else sum % 10 | |
rest = (subtotal * 2) % 11 | |
//println(s"digit=$num\tsum=$sum\tsubtotal=$subtotal\trest=$rest") |
- Create "default-cassandra" security group with following Inbound rules:
- 22/TCP to 0.0.0.0 or private ip
- 7000/TCP to {public IPs of all nodes in cluster}
- 7001/TCP to {public IPs of all nodes in cluster}
- 7199/TCP to {public IPs of all nodes in cluster}
- 9160/TCP to default-cassandra
- 9042/TCP to 0.0.0.0
- Create instance with security group "default-cassandra"
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
com.mchange.v2.log.MLog 'com.mchange.v2.log.log4j.Log4jMLog' could not be loaded! | |
java.lang.ClassNotFoundException: org.apache.log4j.Logger | |
at java.net.URLClassLoader$1.run(Unknown Source) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(Unknown Source) | |
at java.lang.ClassLoader.loadClass(Unknown Source) | |
at java.lang.ClassLoader.loadClass(Unknown Source) | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Unknown Source) | |
at com.mchange.v2.log.log4j.Log4jMLog.<init>(Log4jMLog.java:52) |