EVL – ETL Tool


Products, services and company names referenced in this document may be either trademarks or registered trademarks of their respective owners.

Copyright © 2017–2022 EVL Tool, s.r.o.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Table of Contents

Mkdir

(since EVL 1.0)

Create <directory> on local filesystem or on HDFS in case <directory> starts with ‘hdfs://’. With option ‘--parents’ no error if directory already exists and make parent directories as needed.

For HDFS it takes function ‘evl_hdfs_mkdir’, which is by default ‘hdfs dfs -mkdir’.

Synopsis

Mkdir
  [-p|--parents] <directory>...

evl mkdir
  [-p|--parents] <directory>...

evl mkdir
  ( --help | --usage | --version )

Options

-p, --parents

no error if existing, make parent directories as needed

Standard options:

--help

print this help and exit

--usage

print short usage information and exit

--version

print version and exit

Examples

  1. Simple usage examples:
    Mkdir hdfs:///some/path/
    Mkdir /some/local/machine/path/
    
  2. Depends on environment, e.g. ‘PROD’/‘TEST’/‘DEV’, might be useful to be used this way:
    # on DEV:
    OUTPUT_DIR=/data/output
    # on PROD:
    OUTPUT_DIR=hdfs:///data/output
    

    and then in ‘evs’ file:

    Mkdir -p $OUTPUT_DIR