I've been following the documentation on dotnet spark to get started with the library on Windows. This guide can be found:
On the GitHub: https://github.com/dotnet/spark/blob/master/docs/getting-started/windows-instructions.md
On Microsoft documentation: https://learn.microsoft.com/en-us/dotnet/spark/tutorials/get-started
I can't seem to create a spark session with C#. I have spark installed on command line and can run it inside of command line. Here's the code I've been using, same as the guide.
using Microsoft.Spark.Sql;
namespace HelloSpark
{
class Program
{
static void Main(string[] args)
{
var spark = SparkSession.Builder().GetOrCreate();
var df = spark.Read().Json("people.json");
df.Show();
}
}
}
When I run the program inside of Visual Studio, I get the error:
System.Net.Internals.SocketExceptionFactory.ExtendedSocketException:
'No connection could be made because the target machine actively refused it 127.0.0.1:5567'
On the line:
var spark = SparkSession.Builder().GetOrCreate();