The invention provides a Hadoop compiling method and device and a computer readable storage medium, belongs to the technical field of big data processing systems, and solves the problems that in the prior art, an open source community does not adapt to Hadoop, and generally native Hadoop is of an x86 architecture, so that Hadoop cannot be directly used on a non-x86 machine, and if the Hadoop needsto be used on the non-x86 machine, the recompilation must be carried out. The method comprises the steps of detecting and identifying a current processor architecture and an operating system; obtaining a compiling environment according to the processor architecture and the operating system; pulling a dependence package required by compiling from a local warehouse; performing Hadoop compiling based on the dependency package, and obtaining the compiling environment according to the processor architecture and the operating system, wherein the method comprises the steps that the compiling environment needed by the processor architecture and the operating system is determined; and judging whether the current environment meets a compiling environment or not, and if not, building the compiling environment by utilizing the script until a processor architecture and an operating system are met.