Rav Kook Wrote a lot on the coming of the redemption, he was in Israel just before the secular state was established in 1948...
http://ravkooktorah.org/YOM_ATZMAUT_68.htm.
.
.
Sacred RootsDespite the current secular nature of Zionism, the return to Eretz Yisrael in recent times was first promoted by great tzaddikim — starting with the disciples of the Gaon of Vilna and the Baal Shem Tov — and Zionism derives its spiritual nourishment from these holy roots.
"[It was] the lofty righteous of previous generations who ignited a holy inner fire, a burning love for the holiness of Eretz Yisrael in the hearts of God's people. Due to their efforts, individuals gathered in the desolate land, until significant areas became a garden of Eden, and a large and important community of the entire people of Israel has settled in our holy land....
"Recently, however, the pious and great scholars have gradually abandoned the enterprise of settling the Holy Land.... This holy work has been appropriated by those lacking in [Torah] knowledge and good deeds.... Nonetheless, we see that the [secularists'] dedication in deed and action is nourished from the initial efforts of true tzaddikim, who kindled the holy desire to rebuild the Holy Land and return our exiles there."Breaking of the VesselsFor Rav Kook, the fall of Zionism into the hands of the secularists was a form of shevirat keilim, reminiscent of the Kabbalistic 'breaking of vessels' that occurred when the universe was created. The original light and holiness was simply too great to be contained within the limitations of the physical vessels; and it is our task to return these fallen sparks to their elevated source.
But why did the return to the land of Israel need to be appropriated by a secular nationalist movement? Rav Kook attempted to solve this riddle by noting certain qualities lacking in religious circles:
"The fundamental moral force hidden in [the Zionist movement] ... is its motto, 'the entire nation.' This nationalism proclaims... that it seeks to redeem the entire Jewish people. It does not concern itself with individuals or parties or sectors.... And with this perspective, it reaches out to the land of Israel and the love of Zion with a remarkable bravery and courage.
"It is clear that we cannot confront this adversary if we lack the same noble sense of responsibility that speaks in the name of the entire nation, all of Israel. We may not distinguish and divide. We may not say, 'This one is one of ours so we will take care of him, but not that one.' ... [We must] care in our hearts and souls for the good of the entire nation and its redemption, in the most inclusive way possible."Additionally, Rav Kook explained that the pre-Messianic era requires a more practical, down-to-earth orientation, so that the Jewish people may return to their land as a healthy, balanced nation, after centuries of detached statelessness in exile.
"We have a tradition [see Sotah 49b] that there will be a spiritual revolt of the Jewish people in Eretz Yisrael during the initial period of national revival.... The aspirations for lofty and holy ideals will cease and the nation's spirit will sink.... The necessity for this revolt will be the tendency for materialism, which must be powerfully generated in the entire nation after the passage of so many years in which the need and availability of material pursuits were completely absent. When born, this proclivity will trample angrily and stir up storms; these are the birth pangs of the Messianic era." (Orot HaTechiyah sec. 44, p. 84)However, secular Zionism can only bring about the material rebuilding of the Jewish people in their homeland. The nation's complete renewal will only come about when Zionism is restored to its original holiness.
"Secular nationalism may be defiled with much defilement, concealing many evil spirits. But we will not succeed by trying to expel this movement from the nation's soul. Rather we must energetically return it to its elevated source and combine it with the original holiness from which it emanates." (Orot HaTechiyah sec. 22, p. 75)