In this paper, we investigate how to achieve reliable content distribution in device-to-device (D2D) based cooperative vehicular networks by combining big data based vehicle trajectory prediction with coalition formation game based resource allocation. Firstly, vehicle trajectory is predicted based on global positioning system (GPS) and geographic information system (GIS) data, which is critical for finding reliable and longlasting vehicle connections. Then, the determination of content distribution groups with different lifetimes is formulated as a coalition formation game. We model the utility function based on the minimization of average network delay to guarantee the end-to-end quality of service (QoS), which is transferable to the individual payoff of each coalition member according to its contribution. The merge and split process is implemented iteratively based on preference relations, and the final partition is proved to converge to a Nash- stable equilibrium. Finally, we evaluate the proposed algorithm based on real-world map and realistic vehicular traffic.