Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Hadoop safe hftp     - Iptables in Ubuntu (Linux)

- CentOS7 compile and install Tengine + PHP + MariaDB notes (Server)

- C ++ hash function (Programming)

- Let your PHP 7 faster (GCC PGO) (Linux)

- Linux System Getting Started Tutorial: Installing Git on Linux (Linux)

- MariaDB 10.0.X, the dynamic column support JSON format to obtain data (Database)

- CentOS 6.4 under PXE + Kickstart unattended operating system installation (Programming)

- Why you can have JavaScript string method (Programming)

- Linux iptables firewall and vsftpd to resolve the issue (Linux)

- Analysis of MySQL High Availability (Database)

- Erlang concurrency and foundation (Programming)

- Ubuntu 14.04 Boot Repair (Linux)

- Linux Proc File System Experiment (Linux)

- RealVNC Server 5.2.3 Installation and Configuration In Fedora (Server)

- Simple to use Linux GPG (Linux)

- Build Docker based MongoDB replication cluster environment (Database)

- Archive log file size and redo log file size relationship (Database)

- cursor_sharing induced error ORA-00600 (Database)

- How to disable IPv6 on Ubuntu, Linux Mint, Debian (Linux)

- Spacewalk Linux system configuration and installation (Linux)

 
         
  Hadoop safe hftp
     
  Add Date : 2018-11-21      
         
         
         
  Hftp is enabled by default, the browser allows access and download files, under this way, you can read all the documents, leaving a security risk.

Tests are as follows

Parent directory selfreadonly owner /user/hive/warehouse/cdntest.db/selfreadonly/hosts is zhouyang, permission is 700, but abctest users enter the following address in your browser, you can download.
http: // localhost:? 50070 / webhdfs / v1 / user / hive / warehouse / cdntest.db / selfreadonly / hosts op = OPEN & offset = 0 & length = 1024

Add the following configuration disables webhdfs in hdfs-site.xml in

  < Property>
    < Name> dfs.webhdfs.enabled < / name>
    < Value> false < / value>
  < / Property>

After the ban webhdfs, hftp agreement can continue to use the test as follows:
[abctest @ localhost ~] $ Hadoop fs -ls hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / selfreadonly
ls: user = abctest , access = READ_EXECUTE, inode = "/ user / hive / warehouse / cdntest.db / selfreadonly": zhouyang: cdn: drwx ------
[abctest @ localhost ~] $ hadoop fs -ls hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db
Found 4 items
drwx ------ - zhouyang cdn 0 2015-06-04 10:40 hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / selfreadonly
drwxrwxr-x - wangjing cdn 0 2015-06-02 18:51 hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / testp1
drwxrwx --- - cdn cdn 0 2015-06-03 17:37 hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / testp2
drwxrwxr-x - wangjing cdn 0 2015-06-02 10:17 hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / wangjing


Parent directory selfreadonly owner /user/hive/warehouse/cdntest.db/selfreadonly/hosts is zhouyang, permission is 700, but abctest users enter the following address in your browser, you can download.

http: // localhost:? 50070 / webhdfs / v1 / user / hive / warehouse / cdntest.db / selfreadonly / hosts op = OPEN & offset = 0 & length = 1024
After the ban webhdfs, hftp agreement can continue to use.
[abctest @ localhost ~] $ hadoop fs -ls hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / selfreadonly
ls: user = abctest , access = READ_EXECUTE, inode = "/ user / hive / warehouse / cdntest.db / selfreadonly": zhouyang: cdn: drwx ------
[abctest @ localhost ~] $ hadoop fs -ls hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db
Found 4 items
drwx ------ - zhouyang cdn 0 2015-06-04 10:40 hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / selfreadonly
drwxrwxr-x - wangjing cdn 0 2015-06-02 18:51 hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / testp1
drwxrwx --- - cdn cdn 0 2015-06-03 17:37 hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / testp2
drwxrwxr-x - wangjing cdn 0 2015-06-02 10:17 hftp: // localhost: 50070 / user / hive / warehouse / cdntest.db / wangjing
     
         
         
         
  More:      
 
- Ubuntu arm-none-eabi-gcc compiler treated with STM32F10x (Linux)
- Linux 64-bit porting (Programming)
- ImageMagick Tutorial: How to cut images in Linux command line (Linux)
- wget command examples (Linux)
- Java Foundation - Getting Start (Programming)
- SecureCRT in Python scripting study guide (Programming)
- Copy Recovery using RMAN repository development environment (Database)
- Linux OOM killer mechanism (Linux)
- Integrated security administrator Linux accident management (Linux)
- Configuring ftp server and nfs server under Linux (Server)
- Analytical Ceph: handle network layer (Server)
- Spring WebSocket Comments (Programming)
- Practical top command (Linux)
- Android design patterns - state mode (Programming)
- Source encountered problems and solutions when installing SaltStack (Server)
- Linux garbled file delete method (Linux)
- Good wireless network security information spread in the air (Linux)
- Spark build standalone version cluster (Server)
- [JavaScript] catch (ex) statements of ex (Programming)
- How to configure MariaDB replication in CentOS Linux (Database)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.