In the digital information age, new media technology has influenced college students' study, life and way of thinking with its unique connotation and characteristics, thus opening up new channels and methods for the construction of college spirit. At the same time, colleges and universities should also pay attention to the monitoring and handling of online public opinion, respond to negative public opinion in time, and protect the reputation and image of the school. In view of the lack of effective monitoring of campus network public opinion in the process of building school spirit, this paper puts forward a set of real-time analysis system based on big data to improve the early warning mechanism, so as to reduce the negative impact, maintain a good school spirit and maintain a good campus atmosphere. The system is based on Hadoop framework, with Spark as the real-time analysis framework of public opinion, and combined with web crawler, text processing, data visualization and other technical means to realize the collection, preprocessing, storage, analysis, mining, visualization and other operations of campus network public opinion data, thus providing an important basis for the judgment of campus network public opinion. Practice has proved that the system has outstanding performance in distributed storage, distributed computing, text content mining, centralized display and so on, which can meet the actual needs of college spirit construction and has certain promotion significance.