Skip to main content

Create a Ranger service

Create a Ranger service to control access to your Query Engine data from one place. The Create Data Governance Service form has four screens: Basic Information, Nodes Configuration, Additional properties, and Review & Create.

Prerequisites​

  • A workspace whose Status is Connected. See Create a workspace.
  • A PostgreSQL database for Ranger: one from FPT Database Engine, or the host name, port, database, username, and password of your own.
  • An Elasticsearch or OpenSearch database for the audit logs, with its protocol, host name, port, username, password, and index. For OpenSearch, you can use one from FPT Database Engine.
  • To sync users, the URL of your LDAP or AD server and a bind account that can read it.
  • For single sign-on (SSO), the details of your FPT ID, Google, or Keycloak provider.
  • To use a custom domain, a certificate imported on the Certificate tab of the workspace. See Manage certificates.

Open the create form​

  1. Select Data platform → Workspace management, then select your workspace.
  2. On the Overview tab, select Create.
  3. In the Create service dialog, select Ranger, then select Create service.

Create service dialog with the Category filter and the service cards, including the Ranger card

In a workspace with no services yet, the Overview tab shows Create first service instead. Select the Ranger card there to open the form directly.

The Create Data Governance Service form opens on the Basic Information screen.

Enter basic information​

  1. Enter a Name.
  2. Enter a Description (optional).
  3. Select a Version.
  4. Select Next Step.

Basic Information screen of the Create Data Governance Service form with the Name, Description, and Version fields

FieldDescription
NameRequired. The service name. 1 to 30 characters. Letters, numbers, and hyphens (-).
DescriptionOptional. A description of the service.
VersionRequired. The Ranger version to run.

Configure nodes​

  1. Select a Storage Policy.
  2. Select a Type.
  3. Enter the Number of nodes.
  4. Select Next Step.

Nodes Configuration screen of the Create Data Governance Service form with the Storage Policy, Type, and Number of nodes fields

FieldDescription
Storage PolicyRequired. The storage policy of the nodes, for example Premium-SSD.
TypeRequired. The resource configuration of the nodes, for example Large-8 (4 CPU - 8 GB RAM).
Number of nodesRequired. The number of Ranger nodes. From 1 to 10. Ranger has no auto scaling.

Configure additional properties​

On the Additional properties screen, connect Ranger to its database and its audit logs database, then set up user sync, sign-in, and a custom domain if you need them.

  1. Connect the Database.
  2. Connect the Audit logs database.
  3. Set up Usersync if you want to sync users from LDAP or AD.
  4. Set up Single sign-on if you need it.
  5. Set a Custom domain, or clear Custom Domain if you do not need one.
  6. Select Next Step.

Next Step stays unavailable until you fill in the required fields.

Database​

Ranger stores its data in a PostgreSQL database. Use a database you created in FPT Database Engine or your own database.

  1. Select From FPT Database Engine and choose the database in Database Name, or select Manual configuration.
  2. Enter or check the connection details: Host name, Port, Database, Username, and Password.
  3. Select Test connection to check the connection from the workspace to the database.

Database section with Type set to PostgreSQL, the From FPT Database Engine and Manual configuration options, the connection fields, and the Test connection button

FieldDescription
TypeFixed. PostgreSQL.
From FPT Database Engine or Manual configurationRequired. From FPT Database Engine uses a database you created in FPT Database Engine. Manual configuration takes the connection details of your own database. Default: From FPT Database Engine.
Database NameRequired with From FPT Database Engine. The FPT Database Engine database to use.
Host nameRequired. The host name or IP address of the database server.
PortRequired. The port of the database server, for example 5432. The form does not fill it in.
DatabaseRequired. The name of the database.
UsernameRequired. The user that connects to the database.
PasswordRequired. The password of that user.

Audit logs database​

Ranger keeps its audit logs in an Elasticsearch or OpenSearch database. With OpenSearch, you can use a database you created in FPT Database Engine.

  1. Select the Type: Elasticsearch or Opensearch.
  2. With Opensearch, select From FPT Database Engine and choose the database in Database Name, or select Manual configuration. With Elasticsearch, the form selects Manual configuration for you.
  3. Enter or check the Protocol, Host name, Port, Username, Password, and Index.
  4. Select Test connection to check the connection from the workspace to the audit logs database.

Audit logs database section with Elasticsearch selected as Type, Manual configuration selected, the Protocol, Host name, Port, Username, Password, and Index fields, and the Test connection button

FieldDescription
TypeRequired. Elasticsearch or Opensearch. Default: Elasticsearch.
From FPT Database Engine or Manual configurationRequired. From FPT Database Engine uses an OpenSearch database you created in FPT Database Engine, and is available only with Opensearch. Manual configuration takes the connection details of your own search engine.
Database NameRequired with From FPT Database Engine. The FPT Database Engine database to use.
ProtocolRequired. HTTP or HTTPS.
Host nameRequired. The host name or IP address of the search engine server.
PortRequired. The port of the search engine server. The form does not fill it in.
UsernameRequired. The user that connects to the search engine.
PasswordRequired. The password of that user.
IndexRequired. The index that Ranger uses.
note

For OpenSearch, set the ssl_http parameter to False (HTTP). The default value is True (HTTPS).

Usersync​

Usersync syncs users and groups from LDAP or Active Directory (AD) into Ranger automatically. You manage permissions in one place, with less manual work to create users.

Enable Usersync is cleared by default. When it is cleared, Ranger does not sync with LDAP and the form shows no Usersync fields.

  1. Select Enable Usersync.
  2. Under Common config, enter the LDAP/AD URL and the Username and Password of the bind account.
  3. Under User config, fill in the user fields.
  4. To sync groups, under Group config, set Enable group config to Enabled, then fill in the group fields.
  5. Select Test connection to check that Ranger connects to LDAP/AD.

Usersync fields with Enable Usersync selected, the Common config and User config fields, Enable group config, and the Test connection button

The fields under Common config and User config:

FieldDescription
LDAP/AD URLRequired. The URL of the LDAP or AD server: ldap://host:port or ldaps://host:port.
UsernameRequired. The bind account, which needs read permission. For example cn=admin,dc=example,dc=com.
PasswordRequired. The password of the bind account.
User attributeRequired. The attribute used as the username in Ranger, for example uid, sAMAccountName, or cn.
User object classRequired. The object type that holds users, for example person, inetOrgPerson, or user.
User search baseRequired. The root DN of the user search, for example ou=Users,dc=example,dc=com.
User search filterOptional. An extra filter, for example (&(objectClass=person)(department=IT)).
User group name attributeOptional. The attribute on a user that lists its groups, usually memberOf.

The fields under Group config:

FieldDescription
Enable group configOptional. Enabled or Disabled, with no default. Select Enabled to sync groups.
Group member attributeOptional. The attribute that lists the members of a group, for example member, uniqueMember, or memberUid.
Group name attributeRequired with Enabled. The attribute that holds the group name, for example cn.
Group object classRequired with Enabled. The object type of groups, for example groupOfNames or group.
Group search baseRequired with Enabled. The root DN of the group search, for example ou=Groups,dc=example,dc=com.
Group search filterOptional. An advanced filter, for example (&(objectClass=group)(cn=dev*)).

Usersync fields with Enable group config set to Enabled and the Group member attribute, Group name attribute, Group object class, Group search base, and Group search filter fields

Single sign-on​

Without single sign-on (SSO), Ranger uses basic authentication. Turn on SSO to sign in to Ranger through FPT ID, Google, or Keycloak.

Single Sign On is cleared by default.

  1. Select Single Sign On.
  2. Under SSO Configuration, select a Provider: FPT ID, Google, or Keycloak.
  3. Fill in the fields of your provider, as described in the tables below.

With FPT ID, enter your email only.

FieldDescription
EmailRequired. Your FPT email address.

SSO Configuration section with FPT ID selected as Provider and the Email field

With Google, enter the Google client and your email.

FieldDescription
Client IDRequired. The ID that authenticates the client with Google.
Client SecretRequired. The secret that authenticates the client with Google.
EmailRequired. Your email address.

SSO Configuration section with Google selected as Provider and the Email, Client ID, and Client Secret fields

With Keycloak, enter the details of your Keycloak server and your email.

FieldDescription
Auth Provider nameRequired. The name of the provider.
RealmRequired. The Keycloak realm, the space where users, groups, roles, clients, and other objects are managed and secured on their own.
Auth Server URLRequired. The base URL of the Keycloak server, which clients use to authenticate.
Client IDRequired. The ID that authenticates the client with Keycloak.
Client SecretRequired. The secret that authenticates the client with Keycloak.
EmailRequired. The email address in Keycloak.

SSO Configuration section with Keycloak selected as Provider and the Email, Client ID, Client Secret, Auth Provider name, Realm, and Auth Server URL fields

Custom domain​

A custom domain lets you reach the service at your own domain name. The fields depend on the Type of the workspace: a Public workspace always serves the service over HTTPS, and a Private workspace lets you choose HTTPS or HTTP.

Custom Domain is selected by default. Clear it if you do not need a custom domain.

  1. Fill in the fields for your workspace type, as described in the tables below.
  2. Select Validate to check that the certificate is valid for the domain.

Manage certificate, next to Certificate name, opens certificate management, where you can import a certificate that is not in the list yet. See Manage certificates.

In a Public workspace, the form has no TLS/SSL certificate option because HTTPS is always on.

FieldDescription
Custom Domain (field)Required. The domain name of the service.
Certificate nameRequired. A certificate imported on the Certificate tab of the workspace.

Custom Domain section in a Public workspace with the Custom Domain and Certificate name fields and the Manage certificate and Validate buttons

In a Private workspace, you choose HTTPS or HTTP with TLS/SSL certificate.

FieldDescription
Custom Domain (field)Required. The domain name of the service.
TLS/SSL certificateOptional. Select it to serve the service over HTTPS. When it is cleared, the service runs over HTTP and needs no certificate.
Certificate nameRequired with TLS/SSL certificate. A certificate imported on the Certificate tab of the workspace.

Custom Domain section in a Private workspace with the Custom Domain field, the TLS/SSL certificate option, the Certificate name field, and the Manage certificate and Validate buttons

Review and create​

  1. Check the settings on the Review & Create screen. The database settings appear under Storage, the Usersync settings under User sync.
  2. Select Create.

Review & Create screen of the Create Data Governance Service form with the Basic Information, Node Configuration, Storage, Audit logs database, Custom Domain, Single Sign On, and User sync sections and the Create button

The service is ready when its Status is Healthy. This takes about 10 minutes.

Next steps​