Installing HPE Ezmeral Data Fabric Streams C#/.NET Client

The HPE Ezmeral Data Fabric Streams C#/.NET client is a binding for librdkafka that is dependent on the HPE Ezmeral Data Fabric Streams C client (HPE Ezmeral Data Fabric Streams C Client is a distribution of librdkafka that works with HPE Ezmeral Data Fabric Streams).

NOTE As of MapR 6.0.1/ EEP 5.0, you can create C#/.NET client applications for HPE Ezmeral Data Fabric Streams.

Requirements

Verify that the following components are installed on the node:
  • MapR Client on Windows 7 (or higher) x64 operating systems
  • MapR cluster version 6.0.1 or greater
  • Java 8 SDK and set Java HOME
  • HPE Ezmeral Data Fabric Streams C Client (mapr-librdkafka 0.11.3)
  • HPE Ezmeral Data Fabric Streams C#/.NET Client (mapr-streams-dotnet)
  • .NET SDK 4.5.x or 4.6.x or .NET Core SDK 1.1
  • nuget.exe

For instructions on setting up the EEP repository, see Step 10: Install Ecosystem Components Manually.

IMPORTANT Because the HPE Ezmeral Data Fabric Streams C#/.NET Client is dependent on the HPE Ezmeral Data Fabric Streams C Client, you must configure the HPE Ezmeral Data Fabric Streams C Client before using the HPE Ezmeral Data Fabric Streams C#/.NET Client. See Configuring the HPE Ezmeral Data Fabric Streams C Client.

The following screenshot shows the Environment Variables on Windows:

Installing on Windows

To install from the Visual Studio, search for the HPE Ezmeral Data Fabric Streams C#/.NET package (mapr-streams-dotnet) in the NuGet Package Manager UI.

To install from PowerShell:
  1. Run the following command in the Package Manager Console:
    Install-Package mapr-streams-dotnet -<version>
To add the package initial in .NET Core:
  1. Create the application, for example: dotnet new console
  2. Add the C#/.NET Client package, for example: dotnet add package mapr-streams-dotnet
  3. Add a dependency in your .csproj file:
    <ItemGroup>
    <PackageReference Include="mapr-streams-dotnet" Version="<version number>" /> 
    </ItemGroup>