經濟部學研聯合研究計畫 台灣雲端運算應用實驗中心計畫
-
Upload
britanney-hall -
Category
Documents
-
view
60 -
download
3
description
Transcript of 經濟部學研聯合研究計畫 台灣雲端運算應用實驗中心計畫
經濟部學研聯合研究計畫台灣雲端運算應用實驗中心計畫
分項子計畫 :P2P video streaming
主持人 : 李宗南研究助理 : 高詠證 高惠翔 蔡宗銘 陳盈村
1 Quarter: 完成 Client/Server 互動電視,包括伺服器建立,節目播放,使用介面設計 ; 機制部分完成服務代理元件做視訊串流分合 .2 Quarter: 建立點對點互動電視 ,包括頻道收集,點對點拓樸建置 ; 機制部分完成搜尋雲端最佳伺服器 .3 Quarter: 移植至 XEN 平台 ; 機制部分完成SVC 視訊合流 .4 Quarter: 點對點互動電視實地測試 ; 機制部分完成 QoS 及流量監控 .
分項子計畫 :P2P video streaming 預期完成進度
1 Quarter: 完成 Client/Server 互動電視,包括伺服器建立,節目播放,使用介面設計 .2 Quarter: 建立點對點互動電視 ,包括頻道收集,點對點拓樸建置 .3 Quarter: 移植至 XEN 平台 .4 Quarter: 點對點互動電視實地測試 .
分項子計畫 :P2P video streaming 實做部分 預期完成進度
分項子計畫 :P2P video streaming
實做部分 目前完成進度
1. 完成 Client/Server 互動電視,包括伺服器建立,節目播放,使用介面設計。客戶端使用介面設計如下
2. 移植至 XEN 平台 工作包括
Write video data into Hadoop Distributed File System(HDFS) and backup the data on three cloud nodes.
Build the video server to read video data from HDFS.
移植至Hadoop 與 XEN平台 Architecture
Hadoop 0.20.1 in Ubuntu 9.04
移植至Hadoop 與 XEN平台 Video Access via HDFS
VideoWriter: write video data into HDFS
VideoReader: read video data from HDFS
VideoPlayer: play video data from server which is built in Hadoop
移植至Hadoop 與 XEN平台實做 之VideoWriter code
public class HadoopServerWrite { public static void main( String[] args ) throws Exception { String filePath = "./video_file/spool"; String dstPath = "hdfs://wushoupong-desktop:9000/user/wushoupong/p2p/output"; InputStream inFile = new BufferedInputStream( new FileInputStream(filePath) ); Configuration conf = new Configuration(); FileSystem fs = FileSystem.get(URI.create(dstPath), conf); OutputStream out = fs.create(new Path(dstPath), new Progressable() { … } IOUtils.copyBytes(inFile, out, 4096, true); …
移植至Hadoop 與 XEN平台實做 之 VideoReader code
public static void main(String[] args) throws Exception {
String uri =
"hdfs://wushoupong-desktop:9000/user/wushoupong/p2p/output";
String outPath = "./HadoopDownload/spool";
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(URI.create(uri), conf);
InputStream in = null;
FileOutputStream outFile = new FileOutputStream(outPath);
try {
in = fs.open(new Path(uri));
IOUtils.copyBytes(in, outFile, 4096, false);
} finally { …. }
移植至 Hadoop 與 XEN平台實地啟動 Hadoop
分項子計畫:P2P video streaming 討論
原預期完成進度 較難以顯現雲端運算之優勢,目前著重 video streaming 運算與處理