Skip to content

Instantly share code, notes, and snippets.

@ajyoung
ajyoung / undelete-and-purge-kt-kms.md
Last active November 4, 2015 19:10
Undeleting and purging KeyTrustee Key Provider methods via the REST interface

Undeleting and purging KeyTrustee Key Provider methods via the REST interface

The delete operation on the Trustee key provider is a "soft delete", meaning that is possible to "undelete" the key. It is also possible to "purge" the key to delete it permanently. Because these operations are not part of the standard Hadoop key provider API, they are not currently exposed through Hadoop KeyShell (hadoop key). However, you can call these operations directly via the Trustee key provider REST API.

See the examples below.

@ajyoung
ajyoung / gist:d5139b26f557a398f837
Created July 8, 2015 19:37
Install postgresql 9.3 on centos 6.4
[root@ayoungga-kts-centos64-1 ~]# yum -y install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
Loaded plugins: security
Setting up Install Process
pgdg-centos93-9.3-1.noarch.rpm | 5.1 kB 00:00
Examining /var/tmp/yum-root-2Dreks/pgdg-centos93-9.3-1.noarch.rpm: pgdg-centos93-9.3-1.noarch
Marking /var/tmp/yum-root-2Dreks/pgdg-centos93-9.3-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package pgdg-centos93.noarch 0:9.3-1 will be installed
--> Finished Dependency Resolution
@ajyoung
ajyoung / gist:561085a59bd197b1342b
Created July 7, 2015 18:06
Installing openssl on CentOS 6.4
We are going to have a problem with the dependencies. Apparently, these aren't binary compatible, so they need to be installed from source or use another repo to replace the current openssl.
here is the info about how to do it.
http://www.abstractpath.com/2014/updating-openssl-to-install-postgres-9-x-on-centos-6-x/
One of the links in the instructions is broken
here is the link to the package
http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/repoview/ius-release.html
The reason of this error is because PostgreSQL needs the latest openssl libraries, so you can use the workaround or update CentOS 6.4 to CentOS 6.5.
@ajyoung
ajyoung / gist:077f2b198e3dbf41cb4a
Created July 6, 2015 20:14
mac python setup (brew)
anthony-MBP:dev anthony$ brew install python
==> Installing dependencies for python: readline, sqlite, gdbm
==> Installing python dependency: readline
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/readline-6.3.8.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring readline-6.3.8.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
Mac OS X provides similar software, and installing this software in
@ajyoung
ajyoung / gist:611d550201e8090a2c41
Created June 18, 2015 16:23
Starting postfix fails on RHEL
If starting postfix fails,
$ alternatives --config mta
select postfix
$ newaliases
restart postfix