Giter Site home page Giter Site logo

yeleaveszi / play-videos-in-hdfs Goto Github PK

View Code? Open in Web Editor NEW
134.0 134.0 73.0 16.38 MB

This project realizes playing videos storing in HDFS(Hadoop) in the web page online.在线播放HDFS中视频文件

License: Apache License 2.0

Java 93.32% HTML 6.68%

play-videos-in-hdfs's People

Contributors

yeleaveszi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

play-videos-in-hdfs's Issues

Not able to run this project

Hi

I don't know exactly how to comment here on the github. So I am opening an issue, although I don't think there is an issue in your project. But I was not able to make it work. Find below the steps which I took to run your project & the error I faced. Any help in solving the error would be appreciated!

  1. I stored a mp4 video (say a.mp4) in HDFS using put command. As per the instruction given by you in "Usage" section, I made the necessary modifications.
  2. Modified the namenode's IP & port in Constants.java .
  3. Modified the fpath parameter. I saved the video a.mp4 in the location '/a.mp4' in HDFS. So accordingly I changed the parameter & the http link became "http://localhost:8080/HDFSVideoDemo/stream?fpath=/a.mp4"
  4. I then build the project using maven & so a WAR file named "HDFSVideoDemo-0.0.1-SNAPSHOT.war" was generated in the target folder in the root directory of the project.
  5. Then for deploying the web project in the web server, I copied the WAR file in the 'webapps' directory of tomcat & restarted the tomcat server.
  6. Then when I visit the link 'http://localhost:8080/HDFSVideoDemo/MyStream.html' in the browser, I get the error of '404 - Resource not found'. Although tomcat is properly installed & running. See the attached image for the error.
    error

I have also asked a question in stackoverflow related to showing 'video stored in HDFS over web browser'. If you want you can answer that too. http://stackoverflow.com/questions/37451685/accessing-video-stored-in-hdfs-over-http

播放大文件的时候,会卡

播放大文件的时候,会卡
你好,我播放了一个400M左右的文件,会很卡,并且后台报错误,请帮忙看下什么原因,谢谢
Caused by: java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:215)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:366)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:240)
at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:119)
at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
at org.apache.coyote.Response.doWrite(Response.java:499)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:402)

苹果产品的浏览器播放不了

经测试,用apple的chrome和mac的safari都不能播放,但是mac的chrome却能播放。此外,windows的ie 11也不能播放。这些浏览器在播放页面都能发送请求到web服务器上,但是http request内容和正常能播放的浏览器的request不一样,请问能解决吗? @yeleaveszi

缺包

pom为什么没有hadoop的依赖呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.