微软的Larry在MSDN论坛上回答了这个问题 这是答案的链接 https://social.msdn.microsoft.com/Forums/azure/en-US/1eb4f5af-a4b7-4bab-8e3d-9dfaa736e7bd/insert-data-from-hdinsight-storm-to-azure-cosmos-db?forum= hdinsight
这是代码: https://github.com/Blackmist/hdinsight-java-storm-mongodb