Class: AWSCDK::Datasync::CfnLocationHDFS::NameNodeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
datasync/cfn_location_hdfs.rb

Overview

The NameNode of the Hadoop Distributed File System (HDFS).

The NameNode manages the file system's namespace and performs operations such as opening, closing, and renaming files and directories. The NameNode also contains the information to map blocks of data to the DataNodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname:, port:) ⇒ NameNodeProperty

Returns a new instance of NameNodeProperty.

Parameters:

  • hostname (String)

    The hostname of the NameNode in the HDFS cluster.

  • port (Numeric)

    The port that the NameNode uses to listen to client requests.



847
848
849
850
851
852
# File 'datasync/cfn_location_hdfs.rb', line 847

def initialize(hostname:, port:)
  @hostname = hostname
  Jsii::Type.check_type(@hostname, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostname")
  @port = port
  Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port")
end

Instance Attribute Details

#hostnameString (readonly)

The hostname of the NameNode in the HDFS cluster.

This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network.



860
861
862
# File 'datasync/cfn_location_hdfs.rb', line 860

def hostname
  @hostname
end

#portNumeric (readonly)

The port that the NameNode uses to listen to client requests.



865
866
867
# File 'datasync/cfn_location_hdfs.rb', line 865

def port
  @port
end

Class Method Details

.jsii_propertiesObject



867
868
869
870
871
872
# File 'datasync/cfn_location_hdfs.rb', line 867

def self.jsii_properties
  {
    :hostname => "hostname",
    :port => "port",
  }
end

Instance Method Details

#to_jsiiObject



874
875
876
877
878
879
880
881
# File 'datasync/cfn_location_hdfs.rb', line 874

def to_jsii
  result = {}
  result.merge!({
    "hostname" => @hostname,
    "port" => @port,
  })
  result.compact
end