Class: AWSCDK::Datasync::CfnLocationHDFS::NameNodeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnLocationHDFS::NameNodeProperty
- 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
-
#hostname ⇒ String
readonly
The hostname of the NameNode in the HDFS cluster.
-
#port ⇒ Numeric
readonly
The port that the NameNode uses to listen to client requests.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hostname:, port:) ⇒ NameNodeProperty
constructor
A new instance of NameNodeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hostname:, port:) ⇒ NameNodeProperty
Returns a new instance of NameNodeProperty.
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
#hostname ⇒ String (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 |
#port ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |