Yep indeed the likes of Google/Facebook/Yahoo open source technologies have made it much easier for the government to create the tools needed to sift through terabytes of data, yet even if Hadoop/Map Reduce etc... were closed source I'm sure the big G would have come up with their own solution.