title: How to query a remote snappydata server from Python
body: <p>I am trying to query snappydata from Python and some of the answers say in StackOverflow that Python cant connect to remote spark clusters. Could anyone help me how can I connect to snappydata cluster and get a simple query working?</p>
  <p>Code I am trying -</p>
  <pre><code>from pyspark.sql.snappy import SnappySession
  snappy = SnappySession.builder.appName(&quot;test&quot;)  \
                                .master(&quot;local[*]&quot;) \
                                .config(&quot;spark.snappydata.connection&quot;, &quot;&lt;remote server&gt;:1527&quot;) \
                                .getOrCreate()
  </code></pre>
  <p>I am getting FileNotFoundError: [WinError 2] The system cannot find the file specified. In running above code. Unfortunately, there is not much information in setting up the environment. However, I have configured my environment to run PySpark locally and it works.</p>