Hadoop-based generation of a graph schema