Git Product home page Git Product logo

Comments (8)

youngsofun avatar youngsofun commented on May 26, 2024

log 本身正常,是卡在这里不动了?

from dpark.

ariesdevil avatar ariesdevil commented on May 26, 2024

@ellenzhu 最好贴一下代码,方便复现问题

from dpark.

ellenzhu avatar ellenzhu commented on May 26, 2024

感觉就是卡住了。这是代码:
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.

ariesdevil avatar ariesdevil commented on May 26, 2024

@ellenzhu 用你给的代码,没有复现问题

from dpark.

ellenzhu avatar ellenzhu commented on May 26, 2024

@ariesdevil 难道是机器的问题。。。?另一台机器也没问题

from dpark.

ariesdevil avatar ariesdevil commented on May 26, 2024

@ellenzhu 有可能是机器上的 python 相关的问题

from dpark.

ellenzhu avatar ellenzhu commented on May 26, 2024

我用python3.6.1安装的,然后运行环境是2.7.5

from dpark.

ariesdevil avatar ariesdevil commented on May 26, 2024

@ellenzhu 这个跟项目无关了,麻烦自己找一下原因吧。

from dpark.

Related Issues (20)

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.