I'm trying to display the Hadoop HDFS browser to my website by embedding the page in iframe.
I've added some parameters in core-site.xml like the below.
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://hadoop0:portnum</value>
</property>
<property>
<name>hadoop.http.filter.initializers</name>
<value>org.apache.hadoop.http.lib.StaticUserWebFilter,org.apache.hadoop.security.HttpCrossOriginFilterInitializer,org.apache.hadoop.security.AuthenticationFilterInitializer</value>
</property>
<property>
<name>hadoop.http.cross-origin.enabled</name>
<value>true</value>
</property>
<property>
<name>hadoop.http.cross-origin.allowed-origins</name>
<value>*</value>
</property>
<property>
<name>hadoop.http.cross-origin.allowed-methods</name>
<value>GET,POST,HEAD,DELETE,OPTIONS</value>
</property>
<property>
<name>hadoop.http.cross-origin.allowed-headers</name>
<value>X-Requested-With,Content-Type,Accept,Origin</value>
</property>
<property>
<name>hadoop.http.cross-origin.max-age</name>
<value>1800</value>
</property>
<property>
<name>hadoop.http.authentication.type</name>
<value>simple</value>
</property>
<property>
<name>hadoop.http.authentication.token.validity</name>
<value>36000</value>
</property>
<property>
<name>hadoop.http.authentication.token.max-inactive-interval</name>
<value>-1</value>
</property>
<property>
<name>hadoop.http.authentication.signature.secret.file</name>
<value>$user.home/hadoop-http-auth-signature-secret</value>
</property>
<property>
<name>hadoop.http.authentication.cookie.persistent</name>
<value>false</value>
</property>
<property>
<name>hadoop.http.authentication.simple.anonymous.allowed</name>
<value>true</value>
</property>
</configuration>
I also added some parameters in hdfs-site.xml
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
But for some reason, I got the error message like this. "Refused to display 'http://myhdfs url' in a frame because it set 'X-Frame-Options' to 'sameorigin'."
Can anyone help me?