Uploaded image for project: 'Spark Connector'
  1. Spark Connector
  2. SPARK-107

Spark Connector installation on windows

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Configuration
    • None
    • Environment:
      Windows 7,MongoDB 3.4,Spark Connctor

      Hi Team,

      I am using MongoDB-Spark Connector on Windows.I have Spark installed in C drive in C:/Spark.
      I have clone MongoDB Spark connector in using following command in c drive -

      git clone https://github.com/mongodb/mongo-spark.git.
      

      mongo-spark folder is created in C drive.

      When I am running following command in Spark bin folder -

      C:\spark\bin>spark-shell --conf spark.mongodb.input.uri=mongodb://127.0.0.1/test.CoOrder?readPreference=primaryPreferred" --conf "spark.mongodb.output.uri=mongodb://127.0.0.1/test.CoOrder1" --packages org.mongodb.spark:mongo-spark-connector_2.11:1.1.0
      

      There is fllowing error -

      'C:\spark\bin\spark-shell2.cmd" --conf "spark.mongodb.input.uri' is not recognized as an internal or external command,operable program or batch file.
      
      

      How can I connect spark with MongoDB?
      Here my spark is not connected to mongo-spark folder. How can I link spark with mongo-spark folder?

      Thanks
      Nikhar

            Assignee:
            Unassigned Unassigned
            Reporter:
            nikharbatra nikhar batra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: