java -DvarName1=varValue1 -DvarName2=varValue2
|
My online tech scrapbook where I keep my notes in case I need to look them up later
Saturday, February 20, 2016
Passing Environment Variables into Java from Command Line
Pentaho Data Integration PostgreSQL Bulk Loader Gotcha
The password you key in the connection won't work. It only works when authentication is disabled for the server Pentaho is running on.
Reference: http://wiki.pentaho.com/display/EAI/PostgreSQL+Bulk+Loader#PostgreSQLBulkLoader-Setupauthentication
Reference: http://wiki.pentaho.com/display/EAI/PostgreSQL+Bulk+Loader#PostgreSQLBulkLoader-Setupauthentication
Wednesday, February 10, 2016
MongoDB "update" Only Updates One Entry by Default
The "update" command only updates the first matching entry by default. To update all entries, there is a third parameter i.e. "options" where you need to set "multi: true" e.g.
Reference: https://docs.mongodb.org/v2.4/reference/method/db.collection.update/
db.coll.update({},{$set:{"attr":”value”]}},{multi:true})
|
Reference: https://docs.mongodb.org/v2.4/reference/method/db.collection.update/
AWS IAM: EC2 Full Access to Region
Example:
Reference: http://stackoverflow.com/questions/18112784/iam-allowing-a-user-to-access-everything-for-ec2-on-a-region
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "xxxxxxxxxxx",
"Effect": "Allow",
"Action": [
"ec2:*"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"ec2:Region": "us-west-2"
}
}
}
]
}
|
Reference: http://stackoverflow.com/questions/18112784/iam-allowing-a-user-to-access-everything-for-ec2-on-a-region
Subscribe to:
Posts (Atom)