Page tree
Skip to end of metadata
Go to start of metadata

A data link lets you feed data into a workbook without using an import job. The difference between the two job types is when the full data set is loaded. A data link fetches only the preview data for the workboook view; when you run the workbook, the full data set is used. 

When you run an import job the full data set gets loaded. 

You can also edit, rename, create a copy, run, view the full data, view the details and information, or delete an existing data link.

You can create a data link from an existing connection or by specifying a new connection.

See Types of Data Supported for information about the types of files that you can link to in Datameer.

To create a data link:

  1. Click + and select Datalink or right-click in the browser select Create new > Data link.
  2. Click Select Connection, choose the connection and click Select, then click Next. Click New Connection to add a new connection if needed.
  3. Specify the file and folder location and click Next. You can use wildcard characters. See the sections that follow for additional details about importing each of the file types.
    • Apache log: specify the file or folder and the log format. See the samples provided in the dialog box for details.
    • CSV/TSV files: specify the delimiter such as"\t" for tab, comma ",", or semicolon ";", specify whether the first row contains the column headers and click Advanced Settings. In Advanced Settings, specify the escape character to "escape" processing that character and just show it, set the quote character, and if Enable strict quoting is checked, characters outside the quotes are ignored.
    • Fixed width: specify the file or folder and specify whether the first row contains the column headers
    • Mbox: specify the file or folder. This is a format used for collections of electronic mail messages.
    • Text files: specify the file or folder, a regex pattern for processing the data (see Note below), and specify whether the first row contains the column headers
    • Twitter data: specify the file or folder
  4. View a sample of the data set to confirm this is the data source you want to use, and use the checkboxes to select which fields to link into Datameer. (See image below.)




     Then, specify how to handle empty fields and invalid data, and click Next.
  5. Define the schedule details and click Next. See Configuring Workbook Settings for information on the schedule details.
  6. Add a description, name the file, and click Save.

Note: Sample regex pattern for importing data: (\S+) (\S+) (\S+) (\S+) (\S+) See Importing with Regular Expressions to learn more.

To edit a data link:

  1. Click the File Browser tab. 
  2. Click the DataLinks from the navigation box on the left side.
  3. Right-click data link you want to edit and select Configure.
  4. Make your changes as desired and click Next to move through the screens.
  5. Click Save when you are finished.

To create partitions when linking data:

  1. Create a new data link or choose to edit a current data link.
  2. Go to the Data Details section.
  3. Enter the path for the files or folders and include the %pattern% to where the files are located.

    The %pattern% specifies a folder structure and defines which files from the included folders should be included in the DataLink partition. This feature may not be used on direct filenames.

    For example, instead of using /data/archive/newsvine/Newsvine_Users_20140104.txt, use newsvine/%pattern% when the Path Prefix is set to /data/archive.

    More examples:

    (tick) /Users/MattSmith/Desktop/Geo_coords/%pattern%/geodata.csv

    (error) /Users/MattSmith/Desktop/Geo_coords/%pattern%.csv)

  4. Scroll down to time based partitions and select the On setting.
  5. In Partition Pattern enter a date format expression like 'yyyy/MM/dd' which replaces the %pattern% placeholder in the file path. In the above example, you would use 'Newsvine_Users_'yyyMMdd'.txt'.
  6. Click Next when you have finished and save the file.

When creating or opening the linked data in a workbook the partitioned data is displayed. You can then select the data you want to analyze.

           

Available as of Datameer v6.1

You can read and use the Hive and Hive2 partitions while creating a data link and map them into Datameer. This mapping only works for date and time partitions - it doesn't map string partitions that aren't parsed to date or time. When partitioning on the Hive side changes, you will receive an error message in the workbook. To fix this, you can change the partitioning in the workbook by clicking the Partition button.

  1. Create a connection using Hive.
  2. Create a new data link and select your Hive connection.
  3. Select which tables and databases you want to ingest on the Data Details page.
  4. On the Filter page select Enable partitioning
  5. Define the date pattern to map to Hive's time based partitions. For example, if in Hive you have three columns with integer values which contain year, month, and date, then each value must be defined in a different field.

    If you have one column with a string value, use one field to define the pattern, such as yyyy-MM-dd. 

    As with any other partitioned data, when creating or opening the linked data in a workbook the partitioned data is displayed. You can then select the data you want to analyze.

To copy a data link:

  1. Click the File Browser tab. 
  2. Click DataLinks from the navigation box on the left side.
  3. Right-click the data link you want to copy and select Duplicate.

The copy is created and is named "copy of " and the name of the original data link.

To run a data link:

  1. Click the File Browser tab.
  2. Click DataLinks from the navigation box.
  3. Right-click the data link you want to run and select Run.
  4. Depending on the volume of data, this could take awhile. 

Note that deleting a data link deletes the link in Datameer but does not delete the actual data.

To delete a data link:

  1. Click the File Browser tab.
  2. Click DataLinks from the navigation box.
  3. Right-click the data link you want to delete and select Delete.
  4. Click OK and then confirm the deletion.

Set Permissions

 Only an administrator can set permissions.

To set permissions for a data link:

  1. Click the File Browser tab.
  2.  Click DataLinks from the navigation box.
  3.  Right-click the data link you want to set permissions for and select Information.
  4. Optionally add one or more groups to this link. Set read, write, and run permissions for each group.
  5. Set read, write, and run permissions for all others who are not part of a group.

Viewing Import Job Upload Size and Monthly Upload Sizes

You can view the count of processed bytes for each upload and their total volume counting towards the license term.

To view the processed bytes per single job execution and totals for that job configuration of the data link:

  1. Click the File Browser tab.
  2.  Click DataLinks from the navigation box.
  3. The size of last job run is displayed first and the total for that job configuration is displayed to the right in parentheses.

If a new license term starts and the data link is processed again, the count starts with a new total processed data amount.

 

  • None