Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified cs105_lab2_apache_log.dbc
Binary file not shown.
4 changes: 2 additions & 2 deletions cs105_lab2_apache_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def parse_clf_time(s):

paths_counts = (paths_df
.select('path', 'count')
.map(lambda r: (r[0], r[1]))
.rdd.map(lambda r: (r[0], r[1]))
.collect())

paths, counts = zip(*paths_counts)
Expand Down Expand Up @@ -726,7 +726,7 @@ def parse_clf_time(s):

# TEST Number of unique daily hosts (4c)
daily_hosts_list = (daily_hosts_df
.map(lambda r: (r[0], r[1]))
.rdd.map(lambda r: (r[0], r[1]))
.take(30))

Test.assertEquals(day_to_host_pair_df.count(), total_log_entries, 'incorrect row count for day_to_host_pair_df')
Expand Down