├── .classpath ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.jdt.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container └── org.eclipse.wst.jsdt.ui.superType.name ├── README.md ├── WebContent ├── META-INF │ └── MANIFEST.MF ├── WEB-INF │ ├── lib │ │ ├── accessors-smart-1.2.jar │ │ ├── animal-sniffer-annotations-1.17.jar │ │ ├── asm-5.0.4.jar │ │ ├── audience-annotations-0.5.0.jar │ │ ├── avro-1.7.7.jar │ │ ├── checker-qual-2.5.2.jar │ │ ├── commons-beanutils-1.9.3.jar │ │ ├── commons-cli-1.2.jar │ │ ├── commons-codec-1.11.jar │ │ ├── commons-collections-3.2.2.jar │ │ ├── commons-compress-1.18.jar │ │ ├── commons-configuration2-2.1.1.jar │ │ ├── commons-daemon-1.0.13.jar │ │ ├── commons-io-2.5.jar │ │ ├── commons-lang-2.6.jar │ │ ├── commons-lang3-3.4.jar │ │ ├── commons-logging-1.1.3.jar │ │ ├── commons-math3-3.1.1.jar │ │ ├── commons-net-3.6.jar │ │ ├── curator-client-2.13.0.jar │ │ ├── curator-framework-2.13.0.jar │ │ ├── curator-recipes-2.13.0.jar │ │ ├── error_prone_annotations-2.2.0.jar │ │ ├── failureaccess-1.0.jar │ │ ├── gson-2.2.4.jar │ │ ├── guava-27.0-jre.jar │ │ ├── hadoop-annotations-3.1.3.jar │ │ ├── hadoop-auth-3.1.3.jar │ │ ├── hadoop-common-3.1.3-tests.jar │ │ ├── hadoop-common-3.1.3.jar │ │ ├── hadoop-hdfs-3.1.3-tests.jar │ │ ├── hadoop-hdfs-3.1.3.jar │ │ ├── hadoop-hdfs-client-3.1.3-tests.jar │ │ ├── hadoop-hdfs-client-3.1.3.jar │ │ ├── hadoop-hdfs-httpfs-3.1.3.jar │ │ ├── hadoop-hdfs-native-client-3.1.3-tests.jar │ │ ├── hadoop-hdfs-native-client-3.1.3.jar │ │ ├── hadoop-hdfs-nfs-3.1.3.jar │ │ ├── hadoop-hdfs-rbf-3.1.3-tests.jar │ │ ├── hadoop-hdfs-rbf-3.1.3.jar │ │ ├── hadoop-kms-3.1.3.jar │ │ ├── hadoop-nfs-3.1.3.jar │ │ ├── htrace-core4-4.1.0-incubating.jar │ │ ├── httpclient-4.5.2.jar │ │ ├── httpcore-4.4.4.jar │ │ ├── j2objc-annotations-1.1.jar │ │ ├── jackson-annotations-2.7.8.jar │ │ ├── jackson-core-2.7.8.jar │ │ ├── jackson-core-asl-1.9.13.jar │ │ ├── jackson-databind-2.7.8.jar │ │ ├── jackson-jaxrs-1.9.13.jar │ │ ├── jackson-mapper-asl-1.9.13.jar │ │ ├── jackson-xc-1.9.13.jar │ │ ├── javax.servlet-api-3.1.0.jar │ │ ├── jaxb-api-2.2.11.jar │ │ ├── jaxb-impl-2.2.3-1.jar │ │ ├── jcip-annotations-1.0-1.jar │ │ ├── jersey-core-1.19.jar │ │ ├── jersey-json-1.19.jar │ │ ├── jersey-server-1.19.jar │ │ ├── jersey-servlet-1.19.jar │ │ ├── jettison-1.1.jar │ │ ├── jetty-http-9.3.24.v20180605.jar │ │ ├── jetty-io-9.3.24.v20180605.jar │ │ ├── jetty-security-9.3.24.v20180605.jar │ │ ├── jetty-server-9.3.24.v20180605.jar │ │ ├── jetty-servlet-9.3.24.v20180605.jar │ │ ├── jetty-util-9.3.24.v20180605.jar │ │ ├── jetty-util-ajax-9.3.24.v20180605.jar │ │ ├── jetty-webapp-9.3.24.v20180605.jar │ │ ├── jetty-xml-9.3.24.v20180605.jar │ │ ├── jsch-0.1.54.jar │ │ ├── json-simple-1.1.1.jar │ │ ├── json-smart-2.3.jar │ │ ├── jsp-api-2.1.jar │ │ ├── jsr305-3.0.0.jar │ │ ├── jsr311-api-1.1.1.jar │ │ ├── jul-to-slf4j-1.7.25.jar │ │ ├── kerb-admin-1.0.1.jar │ │ ├── kerb-client-1.0.1.jar │ │ ├── kerb-common-1.0.1.jar │ │ ├── kerb-core-1.0.1.jar │ │ ├── kerb-crypto-1.0.1.jar │ │ ├── kerb-identity-1.0.1.jar │ │ ├── kerb-server-1.0.1.jar │ │ ├── kerb-simplekdc-1.0.1.jar │ │ ├── kerb-util-1.0.1.jar │ │ ├── kerby-asn1-1.0.1.jar │ │ ├── kerby-config-1.0.1.jar │ │ ├── kerby-pkix-1.0.1.jar │ │ ├── kerby-util-1.0.1.jar │ │ ├── kerby-xdr-1.0.1.jar │ │ ├── leveldbjni-all-1.8.jar │ │ ├── listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar │ │ ├── log4j-1.2.17.jar │ │ ├── metrics-core-3.2.4.jar │ │ ├── netty-3.10.5.Final.jar │ │ ├── netty-all-4.0.52.Final.jar │ │ ├── nimbus-jose-jwt-4.41.1.jar │ │ ├── okhttp-2.7.5.jar │ │ ├── okio-1.6.0.jar │ │ ├── paranamer-2.3.jar │ │ ├── protobuf-java-2.5.0.jar │ │ ├── re2j-1.1.jar │ │ ├── slf4j-api-1.7.25.jar │ │ ├── slf4j-log4j12-1.7.25.jar │ │ ├── snappy-java-1.0.5.jar │ │ ├── stax2-api-3.1.4.jar │ │ ├── token-provider-1.0.1.jar │ │ ├── woodstox-core-5.0.3.jar │ │ └── zookeeper-3.4.13.jar │ └── web.xml ├── css │ └── style.css ├── index.jsp ├── js │ └── index.js └── login.jsp ├── build └── classes │ ├── com │ └── wy │ │ ├── dbtest │ │ └── Test.class │ │ ├── pojo │ │ ├── HdfsDao.class │ │ ├── User.class │ │ └── UserDao.class │ │ └── servlet │ │ ├── DeleteServlet.class │ │ ├── DownloadServlet.class │ │ ├── LoginServlet.class │ │ ├── LogoutServlet.class │ │ ├── MkDirServlet.class │ │ ├── MoveServlet.class │ │ ├── RegistServlet.class │ │ ├── ShowChildDirServlet.class │ │ └── UploadServlet.class │ ├── mysql-connector-java-5.1.7-bin.jar │ └── mysql-connector-java-8.0.20.jar ├── lib ├── mysql-connector-java-5.1.7-bin.jar └── mysql-connector-java-8.0.20.jar └── src └── com └── wy ├── dbtest └── Test.java ├── pojo ├── HdfsDao.java ├── User.java └── UserDao.java └── servlet ├── DeleteServlet.java ├── DownloadServlet.java ├── LoginServlet.java ├── LogoutServlet.java ├── MkDirServlet.java ├── MoveServlet.java ├── RegistServlet.java ├── ShowChildDirServlet.java └── UploadServlet.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | PanCloud 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 博主掌握的javaweb只是不是很多,所以jsp的有些操作看起来有点复杂化了,如果有好的建议,欢迎在下方留言,提出建议。阅读此项目系列文章前请观看效果展示,以判断是否符合你的需求。[视频演示链接](https://www.bilibili.com/video/BV1Ri4y1s7Xz) 2 | 3 | ## 1.开发环境 4 | |hadoop3.1.3|ubuntu18.04 | tomcat9 | 5 | |--|--|--| 6 | |bootstrap4 | eclipse IDE | 火狐或谷歌浏览器 | 7 | ## 2.项目功能 8 | 9 | - a.用户管理 10 | 用户的注册,登录,退出。注册成功时需要将用户信息写入数据库,并在HDFS中建立用户的专属目录。 11 | - b.文件管理 12 | 提供文件上传,下载,删除等功能。提供目录的管理,可以创建目录,复制或移动文件或目录到指定目录下面;可以删除目录。 13 | - c.界面设计 14 | 为系统设计并实现主界面,基于窗口或基于浏览器均可。所有操作均在人机交互界面中完成。 15 | ## 3.视频演示 16 | [b站视频链接](https://www.bilibili.com/video/BV1Ri4y1s7Xz/) 17 | 18 | 19 | ## 4.最后 20 | 这里是[github项目地址](https://github.com/wangyang-o/PanCloud),为方便快速下载也可以[gitee下载](https://gitee.com/ojbk66/PanCloud) 21 | 22 | ## 下载时记得点个star哦! 23 | 24 | 后续详细的一些代码说明将逐渐更新。博客:https://blog.csdn.net/qq_45213986 25 | -------------------------------------------------------------------------------- /WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/accessors-smart-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/accessors-smart-1.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/animal-sniffer-annotations-1.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/animal-sniffer-annotations-1.17.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/asm-5.0.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/asm-5.0.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/audience-annotations-0.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/audience-annotations-0.5.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/avro-1.7.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/avro-1.7.7.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/checker-qual-2.5.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/checker-qual-2.5.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-beanutils-1.9.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-beanutils-1.9.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-cli-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-cli-1.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-codec-1.11.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-codec-1.11.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-collections-3.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-collections-3.2.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-compress-1.18.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-compress-1.18.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-configuration2-2.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-configuration2-2.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-daemon-1.0.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-daemon-1.0.13.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-io-2.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-io-2.5.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-lang-2.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-lang-2.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-lang3-3.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-lang3-3.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-logging-1.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-logging-1.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-math3-3.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-math3-3.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-net-3.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/commons-net-3.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/curator-client-2.13.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/curator-client-2.13.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/curator-framework-2.13.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/curator-framework-2.13.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/curator-recipes-2.13.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/curator-recipes-2.13.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/error_prone_annotations-2.2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/error_prone_annotations-2.2.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/failureaccess-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/failureaccess-1.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/gson-2.2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/gson-2.2.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/guava-27.0-jre.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/guava-27.0-jre.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-annotations-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-annotations-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-auth-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-auth-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-common-3.1.3-tests.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-common-3.1.3-tests.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-common-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-common-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-3.1.3-tests.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-3.1.3-tests.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-client-3.1.3-tests.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-client-3.1.3-tests.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-client-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-client-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-httpfs-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-httpfs-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-native-client-3.1.3-tests.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-native-client-3.1.3-tests.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-native-client-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-native-client-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-nfs-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-nfs-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-rbf-3.1.3-tests.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-rbf-3.1.3-tests.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-hdfs-rbf-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-hdfs-rbf-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-kms-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-kms-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hadoop-nfs-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/hadoop-nfs-3.1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/htrace-core4-4.1.0-incubating.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/htrace-core4-4.1.0-incubating.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/httpclient-4.5.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/httpclient-4.5.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/httpcore-4.4.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/httpcore-4.4.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/j2objc-annotations-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/j2objc-annotations-1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-annotations-2.7.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jackson-annotations-2.7.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-core-2.7.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jackson-core-2.7.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-core-asl-1.9.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jackson-core-asl-1.9.13.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-databind-2.7.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jackson-databind-2.7.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-jaxrs-1.9.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jackson-jaxrs-1.9.13.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-mapper-asl-1.9.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jackson-mapper-asl-1.9.13.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-xc-1.9.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jackson-xc-1.9.13.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javax.servlet-api-3.1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/javax.servlet-api-3.1.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jaxb-api-2.2.11.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jaxb-api-2.2.11.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jaxb-impl-2.2.3-1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jaxb-impl-2.2.3-1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jcip-annotations-1.0-1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jcip-annotations-1.0-1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-core-1.19.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jersey-core-1.19.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-json-1.19.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jersey-json-1.19.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-server-1.19.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jersey-server-1.19.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-servlet-1.19.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jersey-servlet-1.19.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jettison-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jettison-1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-http-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-http-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-io-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-io-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-security-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-security-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-server-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-server-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-servlet-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-servlet-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-util-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-util-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-util-ajax-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-util-ajax-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-webapp-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-webapp-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jetty-xml-9.3.24.v20180605.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jetty-xml-9.3.24.v20180605.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jsch-0.1.54.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jsch-0.1.54.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/json-simple-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/json-simple-1.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/json-smart-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/json-smart-2.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jsp-api-2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jsp-api-2.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jsr305-3.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jsr305-3.0.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jsr311-api-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jsr311-api-1.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jul-to-slf4j-1.7.25.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/jul-to-slf4j-1.7.25.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-admin-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-admin-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-client-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-client-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-common-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-common-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-core-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-core-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-crypto-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-crypto-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-identity-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-identity-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-server-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-server-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-simplekdc-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-simplekdc-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerb-util-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerb-util-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerby-asn1-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerby-asn1-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerby-config-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerby-config-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerby-pkix-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerby-pkix-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerby-util-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerby-util-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/kerby-xdr-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/kerby-xdr-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/leveldbjni-all-1.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/leveldbjni-all-1.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/log4j-1.2.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/log4j-1.2.17.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/metrics-core-3.2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/metrics-core-3.2.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/netty-3.10.5.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/netty-3.10.5.Final.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/netty-all-4.0.52.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/netty-all-4.0.52.Final.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/nimbus-jose-jwt-4.41.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/nimbus-jose-jwt-4.41.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/okhttp-2.7.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/okhttp-2.7.5.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/okio-1.6.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/okio-1.6.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/paranamer-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/paranamer-2.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/protobuf-java-2.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/protobuf-java-2.5.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/re2j-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/re2j-1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/slf4j-api-1.7.25.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/slf4j-api-1.7.25.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/slf4j-log4j12-1.7.25.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/slf4j-log4j12-1.7.25.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/snappy-java-1.0.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/snappy-java-1.0.5.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/stax2-api-3.1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/stax2-api-3.1.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/token-provider-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/token-provider-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/woodstox-core-5.0.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/woodstox-core-5.0.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/zookeeper-3.4.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/WebContent/WEB-INF/lib/zookeeper-3.4.13.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | PanCloud 4 | 5 | index.html 6 | index.htm 7 | index.jsp 8 | default.html 9 | default.htm 10 | default.jsp 11 | 12 | -------------------------------------------------------------------------------- /WebContent/css/style.css: -------------------------------------------------------------------------------- 1 | * { 2 | box-sizing: border-box; 3 | } 4 | 5 | body { 6 | font-family: 'Montserrat', sans-serif; 7 | background: #f6f5f7; 8 | display: flex; 9 | flex-direction: column; 10 | justify-content: center; 11 | align-items: center; 12 | height: 100vh; 13 | margin: -20px 0 50px; 14 | } 15 | 16 | h1 { 17 | font-weight: bold; 18 | margin: 0; 19 | } 20 | 21 | p { 22 | font-size: 14px; 23 | line-height: 20px; 24 | letter-spacing: .5px; 25 | margin: 20px 0 30px; 26 | } 27 | 28 | span { 29 | font-size: 12px; 30 | } 31 | 32 | a { 33 | color: #333; 34 | font-size: 14px; 35 | text-decoration: none; 36 | margin: 15px 0; 37 | } 38 | 39 | .dowebok { 40 | background: #fff; 41 | border-radius: 10px; 42 | box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22); 43 | position: relative; 44 | overflow: hidden; 45 | width: 768px; 46 | max-width: 100%; 47 | min-height: 480px; 48 | } 49 | 50 | .form-container form { 51 | background: #fff; 52 | display: flex; 53 | flex-direction: column; 54 | padding: 0 50px; 55 | height: 100%; 56 | justify-content: center; 57 | align-items: center; 58 | text-align: center; 59 | } 60 | 61 | .social-container { 62 | margin: 20px 0; 63 | } 64 | 65 | .social-container a { 66 | border: 1px solid #ddd; 67 | border-radius: 50%; 68 | display: inline-flex; 69 | justify-content: center; 70 | align-items: center; 71 | margin: 0 5px; 72 | height: 40px; 73 | width: 40px; 74 | } 75 | 76 | .social-container a:hover { 77 | background-color: #eee; 78 | } 79 | 80 | .form-container input { 81 | background: #eee; 82 | border: none; 83 | padding: 12px 15px; 84 | margin: 8px 0; 85 | width: 100%; 86 | outline: none; 87 | } 88 | 89 | button { 90 | border-radius: 20px; 91 | border: 1px solid #ff4b2b; 92 | background: #ff4b2b; 93 | color: #fff; 94 | font-size: 12px; 95 | font-weight: bold; 96 | padding: 12px 45px; 97 | letter-spacing: 1px; 98 | text-transform: uppercase; 99 | transition: transform 80ms ease-in; 100 | cursor: pointer; 101 | } 102 | 103 | button:active { 104 | transform: scale(.95); 105 | } 106 | 107 | button:focus { 108 | outline: none; 109 | } 110 | 111 | button.ghost { 112 | background: transparent; 113 | border-color: #fff; 114 | } 115 | 116 | .form-container { 117 | position: absolute; 118 | top: 0; 119 | height: 100%; 120 | transition: all .6s ease-in-out; 121 | } 122 | 123 | .sign-in-container { 124 | left: 0; 125 | width: 50%; 126 | z-index: 2; 127 | } 128 | 129 | .sign-up-container { 130 | left: 0; 131 | width: 50%; 132 | z-index: 1; 133 | opacity: 0; 134 | } 135 | 136 | .overlay-container { 137 | position: absolute; 138 | top: 0; 139 | left: 50%; 140 | width: 50%; 141 | height: 100%; 142 | overflow: hidden; 143 | transition: transform .6s ease-in-out; 144 | z-index: 100; 145 | } 146 | 147 | .overlay { 148 | background: #ff416c; 149 | background: linear-gradient(to right, #ff4b2b, #ff416c) no-repeat 0 0 / cover; 150 | color: #fff; 151 | position: relative; 152 | left: -100%; 153 | height: 100%; 154 | width: 200%; 155 | transform: translateY(0); 156 | transition: transform .6s ease-in-out; 157 | } 158 | 159 | .overlay-panel { 160 | position: absolute; 161 | top: 0; 162 | display: flex; 163 | flex-direction: column; 164 | justify-content: center; 165 | align-items: center; 166 | padding: 0 40px; 167 | height: 100%; 168 | width: 50%; 169 | text-align: center; 170 | transform: translateY(0); 171 | transition: transform .6s ease-in-out; 172 | } 173 | 174 | .overlay-right { 175 | right: 0; 176 | transform: translateY(0); 177 | } 178 | 179 | .overlay-left { 180 | transform: translateY(-20%); 181 | } 182 | 183 | /* Move signin to right */ 184 | .dowebok.right-panel-active .sign-in-container { 185 | transform: translateY(100%); 186 | } 187 | 188 | /* Move overlay to left */ 189 | .dowebok.right-panel-active .overlay-container { 190 | transform: translateX(-100%); 191 | } 192 | 193 | /* Bring signup over signin */ 194 | .dowebok.right-panel-active .sign-up-container { 195 | transform: translateX(100%); 196 | opacity: 1; 197 | z-index: 5; 198 | } 199 | 200 | /* Move overlay back to right */ 201 | .dowebok.right-panel-active .overlay { 202 | transform: translateX(50%); 203 | } 204 | 205 | /* Bring back the text to center */ 206 | .dowebok.right-panel-active .overlay-left { 207 | transform: translateY(0); 208 | } 209 | 210 | /* Same effect for right */ 211 | .dowebok.right-panel-active .overlay-right { 212 | transform: translateY(20%); 213 | } 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | -------------------------------------------------------------------------------- /WebContent/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@page import="org.apache.hadoop.fs.FileStatus"%> 4 | 5 | 6 | 7 | 8 | 欢迎使用-bobo网盘 9 | 10 | 12 | 15 | 18 | 19 | 20 | <% 21 | FileStatus[] list = (FileStatus[]) request.getAttribute("documentList"); 22 | String name = (String) session.getAttribute("username"); 23 | String thisPath; 24 | if (request.getAttribute("thisPath") == null) { 25 | thisPath = name; 26 | } else { 27 | thisPath = (String) request.getAttribute("thisPath"); 28 | } 29 | String result;//用户当前目录 30 | if (list.length != 0) { 31 | /*不知道怎么获取当前目录的路径,所以找到他一个子目录的父目录,前面一串路径都是一样的 32 | 比如hdfs://localhost:9000/user/wangyang/user/wy/dir1/ 33 | 你点击了dir2,你就只需要得到hdfs://localhost:9000/user/wangyang/user/wy/+你点击的路径dir2 34 | */ 35 | result = list[0].getPath().getParent().toString().substring(40); 36 | } else { 37 | result = ""; 38 | } 39 | %> 40 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | <% 90 | if (list != null) { 91 | 92 | for (int i = 0; i < list.length; i++) { 93 | %> 94 | 95 | <% 96 | out.print(""); 97 | if (list[i].isDir())//DocumentServlet 98 | { 99 | out.print(""); 100 | } else { 101 | out.print(""); 102 | } 103 | %> 104 | 106 | 107 | 132 | <% 133 | } 134 | } 135 | if (list.length == 0) { 136 | out.print(""); 137 | } 138 | %> 139 | 140 | 141 |
序号文件名属性大小可执行操作
" + (i + 1) + "" + list[i].getPath().getName() + "" + list[i].getPath().getName() + "<%=(list[i].isDir() ? "目录" 105 | : "文件")%><%=(list[i].getLen())%> 108 | <% 109 | String cut=(String)request.getAttribute("cut"); 110 | if (list[i].isDir())//DocumentServlet 111 | { 112 | out.print("进入"); 114 | } else { 115 | out.print("下载"); 117 | } 118 | %> <% 121 | System.out.println("html:" + request.getAttribute("cut")); 122 | if (cut == null||cut.equals("null")) { 123 | out.print(" "); 125 | } else if (!cut.equals("null")&&cut != null && list[i].isDir()) { 126 | out.print("粘贴"); 128 | 129 | } 130 | %> 131 |
没有任何文件哦
142 |
143 |
144 | 150 | 151 |
152 |
153 | 154 | 171 | 172 | 173 | 174 | 175 | 176 | -------------------------------------------------------------------------------- /WebContent/js/index.js: -------------------------------------------------------------------------------- 1 | var signUpButton = document.getElementById('signUp') 2 | var signInButton = document.getElementById('signIn') 3 | var container = document.getElementById('dowebok') 4 | 5 | signUpButton.addEventListener('click', function () { 6 | container.classList.add('right-panel-active') 7 | }) 8 | 9 | signInButton.addEventListener('click', function () { 10 | container.classList.remove('right-panel-active') 11 | }) 12 | -------------------------------------------------------------------------------- /WebContent/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 你的最爱--bobo网盘 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 |
24 |

注册

25 | 32 | 35 | 36 |
37 |
38 |
39 |
40 |

登录

41 | 46 | 使用您的帐号 47 | 忘记密码? 49 | 50 |
51 |
52 |
53 |
54 |
55 |

已有帐号?

56 |

请使用您的帐号进行登录

57 | 58 |
59 |
60 |

没有帐号?

61 |

立即注册加入我们,和我们一起开始旅程吧

62 | 63 |
64 |
65 |
66 |
67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /build/classes/com/wy/dbtest/Test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/dbtest/Test.class -------------------------------------------------------------------------------- /build/classes/com/wy/pojo/HdfsDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/pojo/HdfsDao.class -------------------------------------------------------------------------------- /build/classes/com/wy/pojo/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/pojo/User.class -------------------------------------------------------------------------------- /build/classes/com/wy/pojo/UserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/pojo/UserDao.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/DeleteServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/DeleteServlet.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/DownloadServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/DownloadServlet.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/LoginServlet.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/LogoutServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/LogoutServlet.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/MkDirServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/MkDirServlet.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/MoveServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/MoveServlet.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/RegistServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/RegistServlet.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/ShowChildDirServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/ShowChildDirServlet.class -------------------------------------------------------------------------------- /build/classes/com/wy/servlet/UploadServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/com/wy/servlet/UploadServlet.class -------------------------------------------------------------------------------- /build/classes/mysql-connector-java-5.1.7-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/mysql-connector-java-5.1.7-bin.jar -------------------------------------------------------------------------------- /build/classes/mysql-connector-java-8.0.20.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/build/classes/mysql-connector-java-8.0.20.jar -------------------------------------------------------------------------------- /lib/mysql-connector-java-5.1.7-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/lib/mysql-connector-java-5.1.7-bin.jar -------------------------------------------------------------------------------- /lib/mysql-connector-java-8.0.20.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangyang-o/PanCloud/2d7a4eaadd231f3aa7a2fdd9c3fd882a25ffaa69/lib/mysql-connector-java-8.0.20.jar -------------------------------------------------------------------------------- /src/com/wy/dbtest/Test.java: -------------------------------------------------------------------------------- 1 | package com.wy.dbtest; 2 | import java.sql.Connection; 3 | import java.sql.DriverManager; 4 | import java.sql.PreparedStatement; 5 | import java.sql.ResultSet; 6 | import java.sql.SQLException; 7 | import java.sql.Statement; 8 | 9 | import org.apache.hadoop.fs.FSDataInputStream; 10 | import org.omg.CORBA.portable.InputStream; 11 | 12 | import com.wy.pojo.UserDao; 13 | public class Test { 14 | 15 | public static void main(String[] args) throws Exception { 16 | String cloudPath="/user/wangyang/user/wy/test2.txt"; 17 | System.out.println(com.wy.pojo.HdfsDao.down(cloudPath) instanceof FSDataInputStream); 18 | 19 | // Statement stmt = null; 20 | // ResultSet rs = null; 21 | // Class.forName("com.mysql.cj.jdbc.Driver"); 22 | // String url = "jdbc:mysql://localhost:3306/panUser?serverTimezone=UTC&useSSL=false"; 23 | // String name = "root"; 24 | // String password = "000"; 25 | // Connection conn = DriverManager.getConnection(url, name, password); 26 | // 27 | // // 3.conn.isClosed()方法判断连接是否关闭;返回true:连接关闭;返回false:连接未关闭 28 | // if(conn.isClosed()){ 29 | // // 返回true:连接关闭 30 | // System.out.println("连接失败!"); 31 | // }else{ 32 | // // 返回false:连接未关闭 33 | // System.out.println("连接成功!"); 34 | // //3.获取语句对象 35 | // 36 | // stmt = conn.createStatement(); 37 | // //定义一个sql语句 38 | // String sql = "select * from panuser"; 39 | // //4.语句对象将sql语句发送到数据库上,执行后得到结果集 40 | // rs = stmt.executeQuery(sql); 41 | // //5.遍历结果集,通过向下移动光标,光标指向哪一行就可以获取当前记录行的各个字段的值 42 | // while(rs.next()){ 43 | // //获取当前记录行的各个字段的值,根据字段名获取字段值 44 | // String user = rs.getString("user"); 45 | // String pwd = rs.getString("password"); 46 | // //打印当前行各个字段值 47 | // System.out.println(user+","+pwd); 48 | // 49 | // } 50 | // } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/com/wy/pojo/HdfsDao.java: -------------------------------------------------------------------------------- 1 | package com.wy.pojo; 2 | 3 | import java.io.IOException; 4 | import java.io.InputStream; 5 | //import java.util.Scanner; 6 | //import java.io.FileNotFoundException; 7 | import java.net.URI; 8 | import java.net.URISyntaxException; 9 | 10 | import org.apache.commons.compress.utils.IOUtils; 11 | import org.apache.hadoop.conf.Configuration; 12 | import org.apache.hadoop.fs.FSDataInputStream; 13 | import org.apache.hadoop.fs.FSDataOutputStream; 14 | import org.apache.hadoop.fs.FileStatus; 15 | import org.apache.hadoop.fs.FileSystem; 16 | import org.apache.hadoop.fs.Path; 17 | 18 | public class HdfsDao { 19 | static Configuration conf = new Configuration(); 20 | static String hdfsPath = "hdfs://localhost:9000/user/wangyang/user"; 21 | 22 | public static void init() { 23 | try { 24 | conf.set("fs.defaultFS", "hdfs://localhost:9000/user/wangyang/user"); 25 | conf.set("fs.hdfs.impl", "org.apache.hadoop.hdfs.DistributedFileSystem"); 26 | } catch (Exception e) { 27 | System.out.println("你似乎没有运行hadoop哦!!"); 28 | e.printStackTrace(); 29 | } 30 | } 31 | 32 | // 根据用户和文件名判断文件是否存在 33 | public static boolean FileIfExist(String user, String filename) throws IOException { 34 | init(); 35 | String fileName = "/user/wangyang/user/" + user + "/" + filename;// 你的文件路径,没有就显示不存在 36 | FileSystem fs = FileSystem.get(conf); 37 | if (fs.exists(new Path(fileName))) { 38 | System.out.println("文件存在"); 39 | return true; 40 | } else { 41 | System.out.println("文件不存在"); 42 | return false; 43 | } 44 | } 45 | 46 | // 为每个用户创建一个目录 47 | public static void mkPersonalDir(String username) throws IOException { 48 | init(); 49 | FileSystem fs = FileSystem.get(URI.create(hdfsPath), conf); 50 | String upremote = "/user/wangyang/user/" + username; 51 | Path a = new Path(upremote); 52 | fs.mkdirs(a); 53 | System.out.println("创建个人目录成功"); 54 | fs.close(); 55 | } 56 | // 创建一个子目录 57 | public static void mkChildDir(String filePath) throws IOException { 58 | init(); 59 | FileSystem fs = FileSystem.get(URI.create(hdfsPath), conf); 60 | String upremote = "/user/wangyang/user/" + filePath; 61 | Path a = new Path(upremote); 62 | fs.mkdirs(a); 63 | System.out.println("创建目录成功"); 64 | fs.close(); 65 | } 66 | // 根据路径删除文件 67 | public static void DeleteFile(String deletePath) throws IOException { 68 | init(); 69 | // Configuration conf = new Configuration(); 70 | FileSystem fs = FileSystem.get(URI.create(hdfsPath), conf); 71 | String filePath = "/user/wangyang/user/" + deletePath; 72 | fs.deleteOnExit(new Path(filePath)); 73 | fs.close(); 74 | } 75 | // 遍历用户目录文件与目录 76 | public static FileStatus[] ShowFiles(String username) throws IOException { 77 | init(); 78 | String filePath = "/user/wangyang/user/" + username; 79 | FileSystem fs = FileSystem.get(URI.create(hdfsPath), conf); 80 | FileStatus[] list = fs.listStatus(new Path(filePath)); 81 | fs.close(); 82 | return list; 83 | } 84 | // 遍历用户目录下的子文件夹 85 | public static FileStatus[] ShowDirFiles(String filePath) throws IOException { 86 | init(); 87 | String filePath1 = "/user/wangyang/user/" + filePath + "/"; 88 | FileSystem fs = FileSystem.get(URI.create(hdfsPath), conf); 89 | FileStatus[] list = fs.listStatus(new Path(filePath1)); 90 | // if (list != null) { 91 | // for (FileStatus f : list) { 92 | // System.out.printf("name %s,folder:%s,size:%d\n", f.getPath(), f.isDir(), f.getLen()); 93 | // } 94 | // } 95 | fs.close(); 96 | return list; 97 | } 98 | // 获取文件的输入流对象 99 | public static InputStream down(String cloudPath) throws IOException, InterruptedException, URISyntaxException { 100 | // 1获取对象 101 | init(); 102 | String filePath1 = "/user/wangyang/user/" + cloudPath + "/"; 103 | FileSystem fs = FileSystem.get(URI.create(hdfsPath), conf); 104 | FSDataInputStream in = fs.open(new Path(filePath1)); 105 | return in; 106 | } 107 | public static void upload(String fileName,InputStream in) throws IllegalArgumentException, IOException, InterruptedException, URISyntaxException{ 108 | init(); 109 | FileSystem fs = FileSystem.get(URI.create(hdfsPath), conf); 110 | FSDataOutputStream out = fs.create(new Path("/user/wangyang/user/" + fileName + "/")); 111 | // FileInputStream in = new FileInputStream("H:/新建.txt"); 112 | IOUtils.copy(in, out); 113 | fs.close(); 114 | 115 | } 116 | // 移动或者重命名:path1原文件路径,path2粘贴路径 117 | public static void ReName(String path1,String path2) throws IOException { 118 | // 1获取对象 119 | init(); 120 | String filePath1 = "/user/wangyang/user/" + path1 + "/"; 121 | String filePath2 = "/user/wangyang/user/" + path2 + "/"; 122 | 123 | FileSystem fs = FileSystem.get(URI.create(hdfsPath), conf); 124 | boolean re = fs.rename(new Path(filePath1), new Path(filePath2)); 125 | System.out.println("rename:"+re); 126 | } 127 | } 128 | -------------------------------------------------------------------------------- /src/com/wy/pojo/User.java: -------------------------------------------------------------------------------- 1 | package com.wy.pojo; 2 | 3 | public class User { 4 | private String user; 5 | private String password; 6 | 7 | 8 | public String getUser() { 9 | return user; 10 | } 11 | public void setUser(String user) { 12 | this.user = user; 13 | } 14 | public String getPassword() { 15 | return password; 16 | } 17 | public User(String user, String password) { 18 | super(); 19 | this.user = user; 20 | this.password = password; 21 | } 22 | public User() { 23 | super(); 24 | } 25 | public void setPassword(String password) { 26 | this.password = password; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/com/wy/pojo/UserDao.java: -------------------------------------------------------------------------------- 1 | package com.wy.pojo; 2 | 3 | import java.sql.Connection; 4 | import java.sql.DriverManager; 5 | import java.sql.PreparedStatement; 6 | import java.sql.ResultSet; 7 | import java.sql.SQLException; 8 | import java.sql.Statement; 9 | 10 | public class UserDao { 11 | 12 | 13 | 14 | // 获得连接 15 | public static Connection getConnection() { 16 | 17 | String url = "jdbc:mysql://127.0.0.1:3306/panUser?serverTimezone=UTC"; 18 | 19 | String name = "root"; 20 | String password = "000"; 21 | Connection conn = null; 22 | 23 | try { 24 | Class.forName("com.mysql.cj.jdbc.Driver"); 25 | conn = DriverManager.getConnection(url, name, password); 26 | } catch (ClassNotFoundException e) { 27 | e.printStackTrace(); 28 | } catch (SQLException e) { 29 | e.printStackTrace(); 30 | } 31 | 32 | 33 | return conn; 34 | } 35 | // 关闭连接 36 | public void closeCon(Connection con) throws Exception{ 37 | if(con!=null){ 38 | con.close(); 39 | } 40 | } 41 | // 根据用户名查找用户密码 42 | public User findUser(String username) { 43 | 44 | String sql = "select * from panuser where user=?"; 45 | Connection con = getConnection(); 46 | PreparedStatement pstmt = null; 47 | ResultSet rs = null; 48 | User user = new User(); 49 | try { 50 | pstmt = con.prepareStatement(sql); 51 | pstmt.setString(1, username); 52 | rs = pstmt.executeQuery(); 53 | if (rs.next()) { 54 | user.setUser(rs.getString("user")); 55 | user.setPassword(rs.getString("password")); 56 | } 57 | else { 58 | return null; 59 | } 60 | } catch (SQLException e) { 61 | e.printStackTrace(); 62 | } finally { 63 | try { 64 | if (pstmt != null) 65 | pstmt.close(); 66 | if (con != null) 67 | con.close(); 68 | } catch (SQLException e) { 69 | e.printStackTrace(); 70 | } 71 | } 72 | // closeCon(con); 73 | return user; 74 | } 75 | 76 | // 添加用户 77 | public boolean addUser(String username, String psw) { 78 | Connection con = getConnection(); 79 | PreparedStatement pstmt = null; 80 | String sql = "INSERT INTO panuser(user,password) VALUES(?,?)"; 81 | boolean res = false; 82 | try { 83 | pstmt = con.prepareStatement(sql); 84 | pstmt.setString(1, username); 85 | pstmt.setString(2, psw); 86 | res = (pstmt.executeUpdate() == 1); 87 | } catch (SQLException e) { 88 | if (!e.getMessage().contains("PRIMARY")) { 89 | e.printStackTrace(); 90 | } 91 | } finally { 92 | try { 93 | if (pstmt != null) 94 | pstmt.close(); 95 | if (con != null) 96 | con.close(); 97 | } catch (SQLException e) { 98 | e.printStackTrace(); 99 | } 100 | } 101 | return res; 102 | } 103 | 104 | // public static void main(String[] args) { 105 | // // 测试方法 106 | // System.out.println((new UserDao().findUser("wy")).getPassword()); 107 | //// new UserDao().addUser("1345", "1345"); 108 | // } 109 | } 110 | -------------------------------------------------------------------------------- /src/com/wy/servlet/DeleteServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import javax.servlet.http.HttpSession; 11 | 12 | import org.apache.hadoop.fs.FileStatus; 13 | 14 | import com.wy.pojo.HdfsDao; 15 | @WebServlet("/DeleteServlet") 16 | public class DeleteServlet extends HttpServlet{ 17 | private static final long serialVersionUID = 1L; 18 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ 19 | request.setCharacterEncoding("utf-8"); 20 | response.setContentType("text/html;charset=utf-8"); 21 | String fileName = request.getParameter("fileName"); 22 | //创建在当前路径 23 | String a=(String) request.getParameter("thisPath"); 24 | String filePath1=a+"/"+ fileName; 25 | System.out.println("删除文件:"+filePath1); 26 | HdfsDao.DeleteFile(filePath1); 27 | 28 | HttpSession session = request.getSession(); 29 | String username=(String)session.getAttribute("username"); 30 | if(a.equals(username)) { 31 | FileStatus[] documentList = HdfsDao.ShowFiles(a); 32 | request.setAttribute("documentList", documentList); 33 | System.out.println("得到list数据"+documentList); 34 | request.getRequestDispatcher("index.jsp").forward(request, response); 35 | }else { 36 | response.sendRedirect(request.getHeader("Referer")); 37 | } 38 | } 39 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ 40 | this.doGet(request, response); 41 | } 42 | } -------------------------------------------------------------------------------- /src/com/wy/servlet/DownloadServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | import java.io.InputStream; 5 | import java.net.URISyntaxException; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.ServletOutputStream; 9 | import javax.servlet.annotation.WebServlet; 10 | import javax.servlet.http.HttpServlet; 11 | import javax.servlet.http.HttpServletRequest; 12 | import javax.servlet.http.HttpServletResponse; 13 | 14 | 15 | import com.wy.pojo.HdfsDao; 16 | 17 | @WebServlet("/DownloadServlet") 18 | public class DownloadServlet extends HttpServlet { 19 | private static final long serialVersionUID = 1L; 20 | 21 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 22 | throws ServletException, IOException { 23 | request.setCharacterEncoding("utf-8"); 24 | String result = request.getParameter("result"); 25 | String fileName = request.getParameter("fileName"); 26 | 27 | String filePath=result+"/"+fileName; 28 | try { 29 | InputStream in=HdfsDao.down(filePath); 30 | byte[] b = new byte[in.available()]; 31 | in.read(b); 32 | response.setCharacterEncoding("utf-8"); 33 | response.setHeader("Content-Disposition","attachment; filename="+fileName+""); 34 | //获取响应报文输出流对象 35 | ServletOutputStream out =response.getOutputStream(); 36 | //输出 37 | out.write(b); 38 | out.flush(); 39 | out.close(); 40 | } catch (IOException | InterruptedException | URISyntaxException e) { 41 | // TODO Auto-generated catch block 42 | e.printStackTrace(); 43 | } 44 | 45 | } 46 | 47 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 48 | throws ServletException, IOException { 49 | this.doPost(request, response); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/com/wy/servlet/LoginServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.annotation.WebServlet; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | import javax.servlet.http.HttpSession; 10 | 11 | import org.apache.hadoop.fs.FileStatus; 12 | 13 | import com.wy.pojo.HdfsDao; 14 | import com.wy.pojo.User; 15 | import com.wy.pojo.UserDao; 16 | 17 | @WebServlet("/LoginServlet") 18 | public class LoginServlet extends HttpServlet { 19 | 20 | private static final long serialVersionUID = 1L; 21 | 22 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 23 | request.setCharacterEncoding("utf-8"); 24 | response.setContentType("text/html;charset=utf-8"); 25 | // 接收表单信息 26 | String username = request.getParameter("user"); 27 | String password = request.getParameter("password"); 28 | // 设置回显 29 | request.setAttribute("user", username); 30 | request.setAttribute("password", password); 31 | // 根据用户名查询用户 32 | User user = new UserDao().findUser(username); 33 | if (user != null) { 34 | if (user.getPassword().equals(password)) { 35 | 36 | // request.getSession().setAttribute("user", user); 37 | HttpSession session = request.getSession(); 38 | session.setAttribute("username", username); 39 | // HdfsDao hdfs = new HdfsDao(); 40 | FileStatus[] documentList = HdfsDao.ShowFiles(username); 41 | request.setAttribute("documentList", documentList); 42 | request.getRequestDispatcher("index.jsp").forward(request, response); 43 | // response.sendRedirect("index.jsp"); 44 | } else { 45 | // (1)只弹出弹窗 46 | response.getWriter() 47 | .write(""); 48 | response.getWriter().flush(); 49 | // response.getWriter().write(""); 50 | // request.setAttribute("loginError", "* 密码错误"); 51 | // request.getRequestDispatcher("/login.jsp").forward(request, response); 52 | } 53 | } else { 54 | response.getWriter() 55 | .write(""); 56 | response.getWriter().flush(); 57 | // request.setAttribute("loginError", "* 用户不存在"); 58 | // request.getRequestDispatcher("/login.jsp").forward(request, response); 59 | } 60 | 61 | } 62 | 63 | @Override 64 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 65 | doPost(request, response); 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /src/com/wy/servlet/LogoutServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | @WebServlet("/LogoutServlet") 12 | public class LogoutServlet extends HttpServlet { 13 | private static final long serialVersionUID = 1L; 14 | 15 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 16 | throws ServletException, IOException { 17 | request.getRequestDispatcher("login.jsp").forward(request, response); 18 | } 19 | 20 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | this.doPost(request, response); 23 | } 24 | } -------------------------------------------------------------------------------- /src/com/wy/servlet/MkDirServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import javax.servlet.http.HttpSession; 11 | 12 | import org.apache.hadoop.fs.FileStatus; 13 | 14 | import com.wy.pojo.HdfsDao; 15 | 16 | 17 | @WebServlet("/MkdirServlet") 18 | public class MkDirServlet extends HttpServlet { 19 | private static final long serialVersionUID = 1L; 20 | 21 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 22 | throws ServletException, IOException { 23 | request.setCharacterEncoding("utf-8"); 24 | response.setContentType("text/html;charset=utf-8"); 25 | String fileName = request.getParameter("mkdir"); 26 | //创建在当前路径 27 | String a=(String) request.getParameter("thisPath"); 28 | String filePath1=a+"/"+ fileName; 29 | System.out.println("创建在当前路径:"+a); 30 | HdfsDao.mkChildDir(filePath1); 31 | 32 | HttpSession session = request.getSession(); 33 | String username=(String)session.getAttribute("username"); 34 | if(a.equals(username)) { 35 | FileStatus[] documentList = HdfsDao.ShowFiles(a); 36 | request.setAttribute("documentList", documentList); 37 | System.out.println("得到list数据"+documentList); 38 | request.getRequestDispatcher("index.jsp").forward(request, response); 39 | }else { 40 | response.sendRedirect(request.getHeader("Referer")); 41 | } 42 | } 43 | 44 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 45 | throws ServletException, IOException { 46 | this.doPost(request, response); 47 | } 48 | } -------------------------------------------------------------------------------- /src/com/wy/servlet/MoveServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import javax.servlet.http.HttpSession; 11 | 12 | import org.apache.hadoop.fs.FileStatus; 13 | 14 | import com.wy.pojo.HdfsDao; 15 | import com.wy.pojo.User; 16 | import com.wy.pojo.UserDao; 17 | 18 | @WebServlet("/MoveServlet") 19 | 20 | public class MoveServlet extends HttpServlet { 21 | 22 | private static final long serialVersionUID = 1L; 23 | 24 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 25 | request.setCharacterEncoding("utf-8"); 26 | response.setContentType("text/html;charset=utf-8"); 27 | String thisPath = request.getParameter("thisPath"); 28 | String fileName = request.getParameter("fileName"); 29 | String filePath1 = thisPath + "/" + fileName; 30 | HttpSession session = request.getSession(); 31 | String username = (String) session.getAttribute("username"); 32 | 33 | String pastePath = request.getParameter("pastePath"); 34 | String pasteName = request.getParameter("pasteName"); 35 | String filePath2 = pastePath + "/" + pasteName; 36 | if (pastePath != null) { 37 | String cut = request.getParameter("cut"); 38 | HdfsDao.ReName(cut, filePath2); 39 | request.setAttribute("cut", "null"); 40 | if (pastePath.equals(username)) { 41 | FileStatus[] documentList = HdfsDao.ShowFiles(pastePath); 42 | request.setAttribute("documentList", documentList); 43 | System.out.println("得到list数据" + documentList); 44 | request.getRequestDispatcher("index.jsp").forward(request, response); 45 | } else { 46 | System.out.println("从定向了1"); 47 | response.sendRedirect(request.getHeader("Referer")); 48 | } 49 | } else { 50 | System.out.println("准备剪切文件:" + filePath1); 51 | request.setAttribute("cut", filePath1); 52 | 53 | System.out.println("我是username:" + username + "=====" + "我是thisPath:" + thisPath); 54 | System.out.println("==============================================================="); 55 | 56 | 57 | FileStatus[] documentList = HdfsDao.ShowFiles(username); 58 | request.setAttribute("documentList", documentList); 59 | System.out.println("得到list数据" + documentList); 60 | request.getRequestDispatcher("index.jsp").forward(request, response); 61 | 62 | } 63 | } 64 | 65 | @Override 66 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 67 | throws ServletException, IOException { 68 | doPost(request, response); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/com/wy/servlet/RegistServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.annotation.WebServlet; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import com.wy.pojo.HdfsDao; 11 | import com.wy.pojo.UserDao; 12 | 13 | @WebServlet("/RegistServlet") 14 | public class RegistServlet extends HttpServlet { 15 | 16 | private static final long serialVersionUID = 1L; 17 | 18 | @Override 19 | public void doPost(HttpServletRequest request, HttpServletResponse response) 20 | throws ServletException, IOException { 21 | 22 | request.setCharacterEncoding("utf-8"); 23 | response.setContentType("text/html;charset=utf-8"); 24 | String username = request.getParameter("reguser"); 25 | String password = request.getParameter("password1"); 26 | String rpsw = request.getParameter("password2"); 27 | if(username==null||username.trim().isEmpty()){ 28 | // request.setAttribute("registError", "用户名不能为空"); 29 | // request.getRequestDispatcher("/regist.jsp").forward(request, response); 30 | response.getWriter().write(""); 31 | response.getWriter().flush(); 32 | return; 33 | } 34 | if(password==null||password.trim().isEmpty()){ 35 | // request.setAttribute("registError", "密码不能为空"); 36 | // request.getRequestDispatcher("/regist.jsp").forward(request, response); 37 | response.getWriter().write(""); 38 | response.getWriter().flush(); 39 | return; 40 | } 41 | if(!password.equals(rpsw)){ 42 | // request.setAttribute("registError", "密码不一致"); 43 | // request.getRequestDispatcher("/regist.jsp").forward(request, response); 44 | response.getWriter().write(""); 45 | response.getWriter().flush(); 46 | return; 47 | } 48 | UserDao u = new UserDao(); 49 | boolean res = u.addUser(username,password); 50 | if(res){ 51 | // response.getWriter().write(""); 52 | // response.getWriter().flush(); 53 | HdfsDao.mkPersonalDir(username); 54 | response.sendRedirect("login.jsp"); 55 | }else { 56 | // request.setAttribute("registError", "注册失败,该用户名已存在"); 57 | // request.getRequestDispatcher("/regist.jsp").forward(request, response); 58 | response.getWriter().write(""); 59 | response.getWriter().flush(); 60 | } 61 | } 62 | 63 | @Override 64 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 65 | doPost(request, response); 66 | } 67 | } -------------------------------------------------------------------------------- /src/com/wy/servlet/ShowChildDirServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import javax.servlet.http.HttpSession; 11 | 12 | import org.apache.hadoop.fs.FileStatus; 13 | 14 | import com.wy.pojo.HdfsDao; 15 | 16 | @WebServlet("/ShowChildDirServlet") 17 | public class ShowChildDirServlet extends HttpServlet { 18 | private static final long serialVersionUID = 1L; 19 | 20 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | request.setCharacterEncoding("utf-8"); 23 | response.setContentType("text/html;charset=utf-8"); 24 | String filePath = request.getParameter("filePath"); 25 | request.setAttribute("thisPath",filePath); 26 | // //用于移动,传递原始文件路径给子目录 27 | String cut = request.getParameter("cut"); 28 | System.out.println("看看cut:"+cut); 29 | request.setAttribute("cut", cut); 30 | FileStatus[] documentList = HdfsDao.ShowDirFiles(filePath); 31 | request.setAttribute("documentList", documentList); 32 | request.getRequestDispatcher("index.jsp").forward(request, response); 33 | } 34 | 35 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 36 | throws ServletException, IOException { 37 | this.doPost(request, response); 38 | } 39 | } -------------------------------------------------------------------------------- /src/com/wy/servlet/UploadServlet.java: -------------------------------------------------------------------------------- 1 | package com.wy.servlet; 2 | 3 | import java.io.IOException; 4 | import java.io.InputStream; 5 | import java.net.URISyntaxException; 6 | import java.util.UUID; 7 | 8 | import javax.servlet.ServletException; 9 | import javax.servlet.ServletOutputStream; 10 | import javax.servlet.annotation.MultipartConfig; 11 | import javax.servlet.annotation.WebServlet; 12 | import javax.servlet.http.HttpServlet; 13 | import javax.servlet.http.HttpServletRequest; 14 | import javax.servlet.http.HttpServletResponse; 15 | import javax.servlet.http.HttpSession; 16 | import javax.servlet.http.Part; 17 | 18 | import org.apache.hadoop.fs.FileStatus; 19 | 20 | import com.wy.pojo.HdfsDao; 21 | 22 | @WebServlet("/UploadServlet") 23 | @MultipartConfig 24 | public class UploadServlet extends HttpServlet{ 25 | private static final long serialVersionUID = 1L; 26 | 27 | protected void doPost(HttpServletRequest request, HttpServletResponse response) 28 | throws ServletException, IOException { 29 | request.setCharacterEncoding("utf-8"); 30 | response.setContentType("text/html;charset=utf-8"); 31 | Part part = request.getPart("myfile"); 32 | // 文件名 33 | String disposition = part.getHeader("Content-Disposition"); 34 | String fileName =disposition.substring(disposition.lastIndexOf("=")+2,disposition.length()-1); 35 | // 路径 36 | String a=(String) request.getParameter("thisPath"); 37 | String upPath=a+"/"+ fileName; 38 | InputStream in = part.getInputStream(); 39 | System.out.println(disposition.substring(disposition.lastIndexOf("=")+2,disposition.length()-1)); 40 | try { 41 | HdfsDao.upload(upPath, in); 42 | System.out.println("上传成功"); 43 | HttpSession session = request.getSession(); 44 | String username=(String)session.getAttribute("username"); 45 | if(a.equals(username)) { 46 | FileStatus[] documentList = HdfsDao.ShowFiles(a); 47 | request.setAttribute("documentList", documentList); 48 | System.out.println("得到list数据"+documentList); 49 | request.getRequestDispatcher("index.jsp").forward(request, response); 50 | }else { 51 | response.sendRedirect(request.getHeader("Referer")); 52 | } 53 | } catch (IllegalArgumentException | IOException | InterruptedException | URISyntaxException e) { 54 | // TODO Auto-generated catch block 55 | e.printStackTrace(); 56 | } 57 | in.close(); 58 | 59 | } 60 | 61 | protected void doGet(HttpServletRequest request, HttpServletResponse response) 62 | throws ServletException, IOException { 63 | this.doPost(request, response); 64 | } 65 | } 66 | --------------------------------------------------------------------------------