Comments (8)
log 本身正常,是卡在这里不动了?
from dpark.
@ellenzhu 最好贴一下代码,方便复现问题
from dpark.
感觉就是卡住了。这是代码:
import json
import dpark
import os
path = "attack_logs/"
files = os.listdir(path)
list = []
def select_matches(dict):
if 'matches' in dict.keys(): return dict['matches']
else: return dict['time']
def analysis_id():
for file in files:
with open("attack_logs/" + file) as f:
line = f.readlines()
for i in line:
list.append(json.loads(i))
d1 = dpark.makeRDD(list).map(select_matches).map(lambda x: (x,1)).reduceByKey(lambda x,y : x+y)
print d1.collect()
if name == "main":
analysis_id()
from dpark.
@ellenzhu 用你给的代码,没有复现问题
from dpark.
@ariesdevil 难道是机器的问题。。。?另一台机器也没问题
from dpark.
@ellenzhu 有可能是机器上的 python 相关的问题
from dpark.
我用python3.6.1安装的,然后运行环境是2.7.5
from dpark.
@ellenzhu 这个跟项目无关了,麻烦自己找一下原因吧。
from dpark.
Related Issues (20)
- 运行 demo时候, 会在text search example 卡住
- 安装报错 HOT 2
- Couldn't download the mesos.interface HOT 3
- from dpark import DparkContext ERROR HOT 2
- pymesos 0.1.6 VS mesosphere 1.1.0, 取不到 slave id HOT 1
- 建议增加hdfs支持 HOT 1
- DeprecationWarning: Call to deprecated function or method decompress (use lz4.block.decompress instead) HOT 2
- 通过textFile创建rdd时,如何给每一行文本添加一个行号? HOT 2
- 能不能加入环境说明 HOT 2
- Bump and release a new version
- pypy 启动报错 HOT 2
- dpark支持mysql数据源嘛? HOT 1
- lz4 error HOT 1
- ERROR HOT 1
- lz4wrapper.py没有更新 HOT 4
- [INFO] [dpark.context] no web server created as No module named gevent.pywsgi HOT 11
- 使用dpark时遇到的问题 HOT 1
- 如何在windows环境下调试 HOT 1
- Increase the usage of augmented assignment statements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpark.