Adjective: Comparative form of nerdy: more nerdy.

Cloudera be gone (for loop #winning).

I needed to completely remove cloudera and the hadoop services installed by it so I could reprovision the server to another cluster. This is the super awesome for loop I used;


for i in $(rpm -qa | grep cdh); do rpm -e --nodeps $i; done

It gets a list of rpm’s that match the cdh string (which is the cloudera repository) and then loops through them removing them. You can run this on the command line, no need for a script file. :)

Leave a Reply

Your email address will not be published. Required fields are marked *