Sha256: 4064e16e89b42ab9ab881fba678e61acd0cb80c7dd56b1835a2078687b13cea6

Contents?: true

Size: 1.52 KB

Versions: 47

Compression:

Stored size: 1.52 KB

Contents

# Test plugin: `file_system_hdfs`

The `file_system_hdfs` test plugin performs various checks on the HDFS file system of a node.

## Config DSL extension

### `on_hdfs`

`on_hdfs` defines a configuration scope in which the `check_files_do_exist` and `check_files_do_not_exist` apply on paths from an HDFS file system.
It takes a code block as parameter to define this scope.
An optional argument `with_sudo` (`String`) can be specified with the sudo user name to be used in front of the hdfs commands checking for paths.

Example:
```ruby
for_nodes('hadoop-gateway') do
  on_hdfs(with_sudo: 'hdfs') do
    check_files_do_not_exist '/user/obsolete_hdfs_user'
  end
end
```

### `check_files_do_exist`

`check_files_do_exist` takes a path or a list of paths as parameter. Those paths should be present on the nodes and will be reported as missing if not.

Example:
```ruby
for_nodes('hadoop-gateway') do
  on_hdfs(with_sudo: 'hdfs') do
    check_files_do_exist '/user/hadoop_user'
  end
end
```

### `check_files_do_not_exist`

`check_files_do_not_exist` takes a path or a list of paths as parameter. Those paths should be absent on the nodes and will be reported as extra if not.

Example:
```ruby
for_nodes('hadoop-gateway') do
  on_hdfs(with_sudo: 'hdfs') do
    check_files_do_not_exist '/user/obsolete_hdfs_user'
  end
end
```

## Used credentials

| Credential | Usage
| --- | --- |

## Used Metadata

| Metadata | Type | Usage
| --- | --- | --- |

## Used environment variables

| Variable | Usage
| --- | --- |

## External tools dependencies

None

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.9.4 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.9.2 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.9.1 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.9.0 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.8.4 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.8.3 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.8.2 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.8.1 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.8.0 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.7.4 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.7.3 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.7.2 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.7.1 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.7.0 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.6.0 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.5.1 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.5.0 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.4.0 docs/plugins/test/file_system_hdfs.md
hybrid_platforms_conductor-33.3.0 docs/plugins/test/file_system_hdfs.md