Skip to main content Skip to complementary content

Adding a group

The first step whAdd group after domain selectionen adding a group is to choose a group domain type (such as local, Active Directory, Qlik_Sense) from the domain dropdown, then select Add Group. This action opens the group administration panel.

Note that Active Directory groups can only be imported into Qlik Catalog (not added through the UI).

Add group selection

STEP 1: Add a New Group, Select Sources

  • Enter the new Group Name
  • Select Sources (available sources and datasets are listed) or check Select All.

Name a group and select sources

Name group and select accessible sources

STEP 2: Select and add entities. (All available entities for sources and datasets selected are visible.) Entity selection can be made by selecting individual entities or Select All.

Select entities

Select entities for group

STEP 3: Select and add existing groups to the new group; display addable groups by clicking the group row dropdown. This step provides the ability to assign personnel to projects by functional groups or on a per project basis.

As groups are added they are appear as Sub-groups.

Add subgroups to the group

add subgroups to group

STEP 4: Associate users and define roles

  • Select users to be associated with the new group.
  • Define each user's access level for the group. Select User and Select Role with the appropriate access level. Default roles include Admin, Analyst, Master Analyst, Master Analyst Obfuscator. For more information on these roles and associated permissions, see Roles and permissions.

Associate users and define roles

User and role selection

STEP 5: Add Source Connections

  • Select All Source Connections that will be associated with and accessible to the group. The left list contains a list of all available source connections, grouped by source connection type (File, JDBC, mainframe, Sqoop, XML). As the admin user selects source connections, the list to the right populates.
  • Save the group.

Add source connections

Added source connections populate to selected list

Administrator settings

Controlling permissions for files and directories under Qlik Catalog control

Optional file system permissions created under Qlik Catalogcontrol under the base directory can be set with explicit control. Corresponding properties can be set at either source or entity level (listed below). Entities inherit from sources by default though the permissions can be set at entity level.

posix.directory.* will be applied to all directories starting at: ./receiving/<source>/<entity>/<load-date>

posix.file.* will be applied to all files starting at:./receiving/<source>/<entity>/<load-date>

Note that for all POSIX permissions and ownerships to work:

  1. On multi-node cluster environments the user running the job should have the permissions to change ownership of the directory.
  2. On single node (single server) environments, the application should be running as root because no other user is allowed to "chown" the directories to change the ownership. Note that while changing the file system privileges, all data files should be readable by the PostgreSQL services OS user postgres otherwise no user will be able to read distribution tables.

File system permissions and ownerships look like this:

[podium@nemo-podium ~]$ hadoop fs -ls / Found 1 items drwxr-xr-x - podium supergroup
 

In the above examples, drwxr-xr-x are the permissions, podium is the user and supergroup is the group. All of these settings can be applied to a whole directory or individual files.

The corresponding settings in Qlik Catalog applicable at entity and source-levels are:

posix.directory.user.identifier: User identifier for receiving/source/entity/partition directory, set for directories during ingestion of entity data. (e.g., podium)

posix.directory.group.identifier: Group identifier for receiving/source/entity/partition directory, set for files during ingestion of entity data. (e.g., supergroup)

posix.directory: permissions Directory permissions for receiving/source/entity/partition directory. (e.g., drwxr-xr-x)

posix.file.user.identifier: User identifier for all files in receiving/source/entity/partition directory. (e.g., podium)

posix.file.group.identifier: Group identifier for all files in receiving/source/entity/partition directory. (e.g., supergroup)

posix.file.permissions: File permissions for all files in receiving/source/entity/partition directory. (e.g., drwxr-xr-x)

These properties can be applied even when impersonation is disabled. However, in multi-node environments when changing the user and group ownerships, the service user must have hdfs admin rights. Group identifiers must exist as UNIX groups on the hadoop namenode.  In single node environments, user and group ownerships can only be changed if Qlik Catalog is running as root user. Running Qlik Catalog as root is not required when changing the permissions (ex. drwxr-xr-x).

It is not mandatory to set these properties in either single node and multi-node environments. However, in multi-node environments, when impersonation is enabled, the file and directory ownerships are set automatically to the logged in user. On single node environments, this does not happen and the file and directory ownerships are set to Qlik Catalog service user.Therefore, on single node environments if ownership must be changed, it has to be done explicitly by setting these properties on every source or entity and running Qlik Catalog as root user. On single node environments, the PostgreSQL service user postgres must always have read permissions on all files, otherwise the distribution tables will not work.

Set extended ACL permissions for directories and files upon ingestion

To provide extended support for HDFS ACL permissions Qlik Catalog now adds support for the following properties:

  • posix.directory.acl
  • posix.file.acl

These properties allow one to set extended ACL permissions for directories and files (respectively) under the Qlik Catalog root directory in HDFS.

Setting posix.directory.acl is the same as running the following Hadoop command:

$ hadoop fs -setfacl --set -R "${posix.directory.acl}" /podium/root/source

Setting posix.file.acl is the same as running the following Hadoop command:

$ hadoop fs -setfacl --set "${posix.file.acl}" /podium/root/source/entity/datasetdate/subdir/file

The syntax of the posix.(directory|file).acl settings is the same syntax as required by the command line -setfacl command.

Documentation for the exact syntax plus a broader discussion of ACLs can be found here.

value of posix.directory.permissions == [syntax is same as required by the command line -setfacl command]
value of posix.file.permissions == [syntax is same as required by the command line -setfacl command]

Example:

value of posix.directory|file.permissions == user::rw-,group::r--,other::r--,user:michael:rw-,group:sales:r—

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!