Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Info
titleINFO

A version of Datameer X with the Support Engineer Report Plug-In.

Section

List All the Available Environment Options

Request Method GET
Description

Lists all available option within an the environment options.

PrerequisitesThe plug-in "Support Engineer Report Plug-in" must be installed and enabled. The capability ADMINISTRATION_ACCESS is required.
URI Syntax
Code Blocknoformat
curl -u '<username>:<password>' 'http://<Datameer-serverIP>:<port-number>/ext/support-engineer-report/envOptions'
Example Response
Code Block
{
  "propertyTable": "dap database property table",
  "systemProperties": "system properties like java.class.path, java.home, os.arch, os.name, os.version",
  "macAddress": "MAC address of first network adapter",
  "plugins": "data about the plugins e.g. names of all available and registered plugins",
  "hadoopConfiguration": "the Hadoop configuration",
  "distProperties": "values from dist.properties like revision, version, hadoopDistribution",
  "nativeLibs": "native library data like java.library.path, compression codecs, native Hadoop code loaded, native Hadoop Libs",
  "configurationFiles": "various property files e.g. default.properties, das-env.sh and {deployMode}.properties",
  "devPage": "various data from the datameer dev page like User, Deploy Mode, Memory, Processors, Webserver URL, JVM Version, JVM Arguments, JVM Start Time, Charset, Timezone",
  "mergedProperties": "merged default.properties, {deployMode}.properties and jvm system properties",
  "authenticationConfiguration": "data from section authentication at Datameer X admin page"
}
Additional NotesVerification
Section

List

MAC Address

a Specific Environment Information

Request Method GET
Description

Lists the MAC addressShows the information which the parameter of '?envOption' encodes: e.g. for 'macAddress' all mac addresses of 'List All the Available Environment Options' are listed.


PrerequisitesThe plug-in "Support Engineer Report Plug-in" must be installed and enabled. The capability ADMINISTRATION_ACCESS is required.
URI Syntax
Code Blocknoformat
curl -u '<username>:<password>' 'http://<Datameer-serverIP>:<port-number>/ext/support-engineer-report/envInfos?envOption=macAddress'
Example Response
Code Block
{
  "macAddress": "<MAC-address>"
}
Additional NotesVerification
Section

List Dev Page Information and MAC Address

curl -u <username>:<password> http://<Datameer-serverIP>:<port-number>/ext/support-engineer-report/envInfos
Request Method GET
Description

Lists the developer's page information and the MAC dress.

PrerequisitesURI Syntax
Code Block

More than one argument can be used to list a set of environment information, e.g. with '?envOption=macAddress&envOption=devPage

Example Response
Code Block
{
  "devPage": {
    "Charset": "UTF-8",
    "Deploy Mode": "LOCAL",
    "JVM Arguments": "-Ddas.user.data\u003dbuild/jetty_run_das_user_data -Ddb.mode\u003dhsql-memory -Ddb.name\u003ddap -Ddeploy.mode\u003dlocal -Denable.horst\u003dnull -Denable.iifg\u003dfalse -Denable.multiline.formula\u003dfalse -Denable.sql.sheet\u003dfalse -Dgenerate.license\u003dtrue -Dinject.examples\u003dfalse -Djetty.port\u003d8088 -Djetty.scanIntervalSeconds\u003d2 -Dlog4j.configuration\u003dfile:///Users/kschubert/dev/repos/dap/modules/dap-conductor/src/main/resources/log4j.properties -Dorg.xerial.snappy.lib.name\u003dlibsnappyjava.jnilib -Dplugin.configs.dir\u003d/Users/kschubert/dev/repos/dap/modules/dap-conductor/build/jetty_run_conf_plugins -Dplugin.excludes\u003dplugin-zementis -Dplugin.loadEclipseClasses\u003dfalse -Dpreferences.store\u003djetty-preferences-store.xml -Dproperties.path\u003d/Users/kschubert/dev/repos/dap/modules/dap-conductor/src/main/resources/properties/deploy -Dupgrades.paths\u003dsrc/main/script/upgrades -Xmx4G -Dfile.encoding\u003dUTF-8 -Duser.country\u003dDE -Duser.language\u003den -Duser.variant ",
    "JVM Start Time": "2018-06-12 14:16 (9 mins, 23 sec)",
    "JVM Version": "Java HotSpot(TM) 64-Bit Server VM, 1.8 (Oracle Corporation)",
    "Memory": "334.5 MB/3.6 GB",
    "Processors": "8",
    "Timezone": "Europe/Berlin (2)",
    "User": "<user-name>",
    "Webserver URL": "http://localhost:8088/"
  },
  "macAddress": "<MAC-address>"
}
Additional NotesVerification
Section

List All Info

Request Method GET
DescriptionPrerequisites
URI Syntax
Code Block
curl -u <username>:<password> http://<Datameer-serverIP>:<port-number>/ext/support-engineer-report/envInfos
Example Response
Code Block
{
}
Additional NotesVerification

' for fetching macAdresses and dev page information.

Section

List All Log Files Available for Download

Request Method GET
Description

Lists all log files that are available for a download.

PrerequisitesThe plug-in "Support Engineer Report Plug-in" must be installed and enabled. The capability ADMINISTRATION_ACCESS is required.
URI Syntax
Code Blocknoformat
curl -u '<username>:<password>' 'http://<Datameer-serverIP>:<port-number>/ext/support-engineer-report/logFiles'
Example Response
Code Block
{
  "files": [
    "audit.log",
    "conductor.log",
    "hadoop-metrics.log",
    "hadoop-metrics.log.2018-05-07",
    "housekeeping.log",
    "housekeeping.log.1",
    "httperror.log",
    "httperror.log.2018-05-07",
    "job_execution_trace.log",
    "metrics-jamon.log",
    "metrics-jamon.log.2018-05-08",
    "metrics.log",
    "rollback-error.log",
    "rta-sql-query.log",
    "runtime-analytics-query.log",
    "runtime-analytics.log",
    "smart_decision_prerequisites.log",
    "useraction.log",
    "volume.log",
    "workbook-preview-service.log",
    "workbook_undo.log"
  ]
}
Additional Notes
Section

Download a Single Log File

Request Method GET
Description

Downloads a given log file in plain text.

PrerequisitesThe plug-in "Support Engineer Report Plug-in" must be installed and enabled. The capability ADMINISTRATION_ACCESS is required.
URI Syntax
Code Blocknoformat
curl -u '<username>:<password>' 'http: //<Datameer-serverIP> :<port-number> /ext/support-engineer-report/logFile/<log-name> /download'
Example Response
Code Block
2017-09-15 10:26:15,1344,1.3 KB,1.2 GB/3.6 GB (34.84%),1,1,3817865216,1.3 KB/1.2 GB (1.0E-4%),1330181728,1,1
2017-09-15 10:28:09,19120,18.7 KB,850.0 MB/3.6 GB (23.34%),1,5,3817865216,18.7 KB/850.0 MB (0.0021%),891258504,1,1
2017-09-15 10:29:21,60864,59.4 KB,223.0 MB/3.6 GB (6.13%),1,11,3817865216,59.4 KB/223.0 MB (0.026%),233875952,1,1
2017-09-15 10:30:49,67264,65.7 KB,871.6 MB/3.6 GB (23.94%),1,11,3817865216,65.7 KB/871.6 MB (0.0074%),913972440,1,1
2017-09-15 17:43:50,1344,1.3 KB,646.4 MB/3.6 GB (17.75%),1,1,3817865216,1.3 KB/646.4 MB (2.0E-4%),677814968,1,1
2017-09-15 17:51:35,1344,1.3 KB,255.5 MB/3.6 GB (7.02%),1,1,3817865216,1.3 KB/255.5 MB (5.0E-4%),267911312,1,1
2017-09-15 18:37:16,1344,1.3 KB,877.0 MB/3.6 GB (24.09%),1,1,3817865216,1.3 KB/877.0 MB (1.0E-4%),919582896,1,1
2017-09-18 10:01:54,1344,1.3 KB,533.3 MB/3.6 GB (14.65%),1,1,3817865216,1.3 KB/533.3 MB (2.0E-4%),559208600,1,1
2017-09-18 18:13:39,1344,1.3 KB,393.1 MB/3.6 GB (10.8%),1,1,3817865216,1.3 KB/393.1 MB (3.0E-4%),412213376,1,1
    ...
2018-05-29 10:41:38,45224,44.2 KB,1.1 GB/3.6 GB (31.15%),1,1,3817865216,44.2 KB/1.1 GB (0.0038%),1189223728,1,1
2018-06-01 09:48:22,3840,3.8 KB,644.7 MB/3.6 GB (17.71%),1,1,3817865216,3.8 KB/644.7 MB (6.0E-4%),676042416,1,1
Additional Notes
Section

Download a Single Log File as a Zip

Request Method POSTGET
Description

Downloads a given log file compressed as zip file.

PrerequisitesThe plug-in "Support Engineer Report Plug-in" must be installed and enabled. The capability ADMINISTRATION_ACCESS is required.
URI Syntax
Code Blocknoformat
curl -u '<username>:<password>' 'http: //<Datameer-serverIP> :<port-number>/ ext/support-engineer-report/logFile/<log-name> /zip > <name-the-file>.zip'
Example Response

No response.

Section

Download Specified Environment Information and Log Files

{
Request Method POST
PrerequisitesThe plug-in "Support Engineer Report Plug-in" must be installed and enabled. The capability ADMINISTRATION_ACCESS is required.
Description

A combination of downloading specific environment information and log files within one task.

URI Syntax
Code Blocknoformat
curl -u '<username>:<password>' -X POST --data-binary @<upload.json> -H  'Content-Type: application/json' 'http://<Datameer-serverIP>:<port-number>/ext/support-engineer-report/all' > <name-the-file>.zip
Example Response
Code Block

INFO: The response will be delivered as a zip file in every case.

Example input for the JSON:

No Format
{
    logFiles: {
        "logFile1.log", "logFile2.log"
    },
    environmentOptions: {
        "macAddress"
    }
}