Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
258 commits
Select commit Hold shift + click to select a range
4908220
Issue SC-281 fix: spark upgrade
manjudr Jan 28, 2020
78a111c
Issue SC-281 fix: spark upgrade
manjudr Jan 28, 2020
c80db63
Issue SC-281 fix: spark upgrade
manjudr Jan 28, 2020
4b502d4
Issue SC-281 fix: spark upgrade
manjudr Jan 29, 2020
ef6318b
Issue SC-281 fix: spark upgrade
manjudr Jan 30, 2020
c73b2e4
Issue SC-281 fix: spark upgrade
manjudr Jan 30, 2020
865f73e
Issue SC-281 fix: spark upgrade
manjudr Jan 30, 2020
471bd8c
Issue SC-281 fix: spark upgrade
manjudr Jan 30, 2020
083e42c
Merge pull request #2 from manjudr/spark-upgrade
SanthoshVasabhaktula Jan 31, 2020
42c28af
#000 feat: created framework level code to handle hadoop file formats…
SanthoshVasabhaktula Jan 31, 2020
207794b
Issue SC-281 fix: Test case build issue fix
manjudr Feb 4, 2020
32d6334
Merge pull request #4 from manjudr/release-2.8.0
sowmya-dixit Feb 4, 2020
bfacc7d
#000 feat: Dataset extension to save the file to blob store (s3, azur…
SanthoshVasabhaktula Feb 4, 2020
811f95b
Merge pull request #3 from SanthoshVasabhaktula/release-2.8.0
sowmya-dixit Feb 4, 2020
8ea2407
Issue #SB-16574: Added setStorageConf as a common method to CommonUtil
ishawakankar Feb 5, 2020
9fcff70
Issue #SB-16574: Test case changes for CommonUtil
ishawakankar Feb 5, 2020
e55e6bf
Issue #SB-16574: Test case changes
ishawakankar Feb 5, 2020
63327fa
Issue #SB-16574: Test case changes for code coverage improvement
ishawakankar Feb 5, 2020
93a771c
Merge pull request #5 from ishawakankar/SB-16574
SanthoshVasabhaktula Feb 5, 2020
bc93186
Issue #000 feat: Add/update test cases to get 100% coverage.
SanthoshVasabhaktula Feb 6, 2020
4a1e91f
Merge branch 'origin/release-2.8.0' into release-2.8.0
SanthoshVasabhaktula Feb 6, 2020
df0cc33
Merge pull request #6 from SanthoshVasabhaktula/release-2.8.0
sowmya-dixit Feb 7, 2020
38b60de
Issue #000 feat: Add/update test cases to get 100% coverage.
SanthoshVasabhaktula Feb 10, 2020
6b090e1
Issue SB-17458 fix: Assessment report job fixes
manjudr Feb 11, 2020
29d0dea
Issue SB-17458 fix: Assessment report job fixes
manjudr Feb 11, 2020
d3f7e4b
Issue SB-17458 fix: course enrolment issue fix
manjudr Feb 11, 2020
7825a65
#SB-17790 | User detail report zip generation fixes added
kumarks1122 Feb 25, 2020
f861aa3
Merge pull request #7 from manjudr/release-2.8.0
SanthoshVasabhaktula Feb 26, 2020
cc4ebad
Merge pull request #8 from kumarks1122/release-2.8.0
SanthoshVasabhaktula Feb 27, 2020
b34d1a5
Merge pull request #10 from project-sunbird/release-2.8.0
sowmya-dixit Feb 28, 2020
d6eb8f6
Issue #SB-18525 feat: DatasetUtil saveToBlobStore method changes to g…
sowmya-dixit Mar 30, 2020
bba2e32
Issue #SB-18525 feat: Add print statements for debug
sowmya-dixit Mar 30, 2020
ba2d0dc
Issue #SB-18525 feat: Add print statements for debug
sowmya-dixit Mar 30, 2020
11c7dbf
Issue #SB-18525 feat: Remove print statements
sowmya-dixit Mar 30, 2020
5462076
Merge pull request #11 from sowmya-dixit/release-2.10.0
SanthoshVasabhaktula Mar 31, 2020
b8fdced
dev testing for druid-query-processor
utk14 Mar 31, 2020
74c3d4a
dev testing for druid-query-processor printing the files
utk14 Mar 31, 2020
fc74b13
Issue #SB-18525 feat: Add print statements for debug
sowmya-dixit Apr 1, 2020
b56aa18
Merge branch 'release-2.10.0' of https://github.com/project-sunbird/s…
sowmya-dixit Apr 6, 2020
80c2732
added jenkins file to automate build, artifactupload and deploy servi…
G33tha Apr 7, 2020
11427ce
Issue #SB-18525 feat: DatasetUtil saveToBlobStore method changes to g…
sowmya-dixit Apr 13, 2020
77432f1
Merge pull request #12 from sowmya-dixit/release-2.9.0
RevathiKotla Apr 13, 2020
ce56acc
Issue #0000 fix: Monitoring alert fix for DruidQueryProcessor job name
sowmya-dixit Apr 15, 2020
8de4579
Issue #0000 fix: Monitoring alert fix for DruidQueryProcessor job name
sowmya-dixit Apr 15, 2020
bb81f75
Merge pull request #13 from sowmya-dixit/release-2.9.0
SanthoshVasabhaktula Apr 15, 2020
bbf13d4
Issue #000 enchancement: Enchancing DruidDataFetcher to support extra…
utk14 Apr 22, 2020
29fe551
Formatting the DatasetUtil saveToBlobStore method
utk14 Apr 22, 2020
308b07b
Enchancement for HLLAggregator for unique computation
utk14 Apr 23, 2020
7f31fac
Enhancement of DruidDataFetcher to support rollup datasource
utk14 Apr 27, 2020
c3d323e
Merge pull request #15 from project-sunbird/release-2.9.1
sowmya-dixit Apr 27, 2020
6d2d844
Issue #0000 fix: DruidDataFetcher changes to query from rollup druid
sowmya-dixit Apr 28, 2020
d726ddb
Merge pull request #16 from sowmya-dixit/release-2.9.1
SanthoshVasabhaktula Apr 28, 2020
40195b5
WFS fixes
SanthoshVasabhaktula May 4, 2020
5368ca9
WFS optimizations
SanthoshVasabhaktula May 6, 2020
346f618
WFS optimizations
SanthoshVasabhaktula May 6, 2020
e0775c7
Merge pull request #17 from SanthoshVasabhaktula/release-2.9.1
sowmya-dixit May 6, 2020
05647b7
Enchancing DruidDataFetcher to support extraction functions
utk14 May 7, 2020
c169c2f
Merge branch 'release-2.10.0' of https://github.com/project-sunbird/s…
utk14 May 7, 2020
97adf37
Reverting the rollup support changes
utk14 May 7, 2020
807c398
Reverting the rollup support testcase changes
utk14 May 7, 2020
3317069
Merge branch 'release-2.10.0' of https://github.com/project-sunbird/s…
sowmya-dixit May 7, 2020
cdb0a50
Interval changes in CommonUtil for timezone for DruidDataFetcher
utk14 May 7, 2020
0230103
Adding default type for dimensions
utk14 May 8, 2020
6a479e1
Merge pull request #18 from project-sunbird/release-2.9.1
SanthoshVasabhaktula May 8, 2020
bdd6c5e
Extraction fn implementation for topn query
utk14 May 8, 2020
1277f72
Review changes for TimeZone issue
utk14 May 8, 2020
14aba02
Merge upstream branch 2.10.0 and removed the merge conflicts
utk14 May 8, 2020
a26899e
Testcase for extraction fn
utk14 May 8, 2020
0e0d9a0
Review changes for offset variable
utk14 May 8, 2020
39314c0
Merge pull request #14 from utk14/release-2.10.0
sowmya-dixit May 8, 2020
07e9d35
Merge pull request #19 from G33tha/release-2.10.0
sowmya-dixit May 8, 2020
01d0f68
added library
G33tha May 8, 2020
8948853
Merge pull request #20 from G33tha/release-2.10.0
sowmya-dixit May 12, 2020
2cbcd2f
Enchancement for HLLAggregation and fix for timezone for summary rollup
utk14 May 13, 2020
ac352d4
Added the testcase for HLLAggregation functionality
utk14 May 13, 2020
c1142a3
Enhancement of DruidDataFetcher for support of Lookups
utk14 May 13, 2020
bb448b9
Merge pull request #21 from utk14/release-2.10.0
sowmya-dixit May 14, 2020
7ec80b7
Merge branch 'release-2.10.0' of https://github.com/project-sunbird/s…
sowmya-dixit May 14, 2020
c155a4b
Issue #0000 fix: Ansible changes to include scruid jar
sowmya-dixit May 14, 2020
43f373d
Issue #0000 fix: Ansible changes to include scruid jar
sowmya-dixit May 14, 2020
309c6aa
Issue #0000 fix: Fix test case
sowmya-dixit May 14, 2020
4188476
Merge pull request #22 from sowmya-dixit/release-2.10.0
RevathiKotla May 14, 2020
b01ad61
Excluded the akka-stream dependency for analytics-core
utk14 May 14, 2020
f83a51b
Revert the exclusion changes
utk14 May 14, 2020
0325b10
Merge branch 'release-2.10.0' of https://github.com/project-sunbird/s…
utk14 May 14, 2020
881d9c3
Issue #0000 fix: Kafka config changes
sowmya-dixit May 15, 2020
288e21c
Issue #0000 fix: Kafka config changes
sowmya-dixit May 15, 2020
014360d
Issue #0000 fix: Kafka config changes
sowmya-dixit May 15, 2020
dfb0801
Merge pull request #23 from sowmya-dixit/loadtest
anandp504 May 15, 2020
3de765b
Druid Data fetcher changes to round the distinct count values
ishawakankar May 20, 2020
7a11a22
Fix for circleci issue
ishawakankar May 20, 2020
08cbdda
Enhancement in DruidDataFetcher for retainMissingValue and replaceMis…
utk14 May 20, 2020
e43cc6b
Fix for scruid changes
utk14 May 20, 2020
f2ede0c
Defaulting the round property to true
ishawakankar May 21, 2020
0487f27
Defaulting the round property to true
ishawakankar May 21, 2020
aab5c90
Test case changes
ishawakankar May 21, 2020
a362b28
Merge pull request #24 from ishawakankar/release-2.10.0
sowmya-dixit May 21, 2020
9b7dc90
Merge branch 'release-2.10.0' of upstream into release-2.10.0
utk14 May 21, 2020
9a5ad71
Merge pull request #25 from utk14/release-2.10.0
RevathiKotla May 21, 2020
2ea5b3c
Issue #0000 fix: WFS optimisations - reduce fields in V3Event
sowmya-dixit May 21, 2020
50c558b
Merge pull request #26 from sowmya-dixit/loadtest-opt-2
sowmya-dixit May 21, 2020
1d088d1
Issue #0000 fix: Kafka config changes - remove logging
sowmya-dixit May 26, 2020
f8f0c50
Issue #0000 fix: Enhance druid data fetcher to have filteredAggregation
sowmya-dixit May 28, 2020
d95cd99
Issue #0000 fix: Enhance druid data fetcher post aggregation to have …
sowmya-dixit May 28, 2020
615adcc
Issue #0000 fix: Enhance druid data fetcher post aggregation to have …
sowmya-dixit May 28, 2020
914827f
Merge pull request #30 from sowmya-dixit/release-2.10.1
RevathiKotla May 28, 2020
d3c9d51
Issue #0000 fix: Enhance druid data fetcher to have cascade extractio…
sowmya-dixit May 28, 2020
a6e635b
Merge pull request #31 from sowmya-dixit/release-2.10.1
RevathiKotla May 28, 2020
9fce03e
Issue #0000 fix: WFS optimisations - rename V3Event case class
sowmya-dixit Jun 1, 2020
b12610b
Issue #0000 fix: WFS optimisations - rename V3Event case class
sowmya-dixit Jun 1, 2020
21ade97
Issue #0000 fix: WFS optimisations - code coverage
sowmya-dixit Jun 1, 2020
92f895f
Issue #0000 fix: WFS optimisations - remove WFSInputEvent case class …
sowmya-dixit Jun 1, 2020
244d7cb
Merge pull request #32 from sowmya-dixit/loadtest-opt-2
anandp504 Jun 1, 2020
f84a850
Issue #0000 fix: Fixed filtered aggregation in scruid jar
sowmya-dixit Jun 2, 2020
aff7892
Issue #0000 fix: Fix test case
sowmya-dixit Jun 2, 2020
61c7261
Merge pull request #33 from sowmya-dixit/release-2.10.1
RevathiKotla Jun 2, 2020
112274d
Issue #SC-000: Fix the daily metrics issu
RevathiKotla Jun 3, 2020
f8a8b5f
Issue #SC-000: Fix the test case
RevathiKotla Jun 3, 2020
841dc0f
Merge pull request #34 from RevathiKotla/release-2.10.1
RevathiKotla Jun 3, 2020
d0ea470
Issue #0000 fix: WFS optimisations - framework changes to have partit…
sowmya-dixit Jun 12, 2020
e075cfe
Issue #0000 fix: WFS optimisations - framework changes to have partit…
sowmya-dixit Jun 12, 2020
aead133
Issue #0000 fix: WFS optimisations - remove comments
sowmya-dixit Jun 12, 2020
f36e34f
Issue #0000 fix: WFS optimisations - review comment changes
sowmya-dixit Jun 15, 2020
73c36b9
Merge pull request #36 from sowmya-dixit/release-3.0.0
SanthoshVasabhaktula Jun 15, 2020
c8a6ced
Added stream query for druid
ishawakankar Jun 16, 2020
2117a74
Merge pull request #39 from ishawakankar/3.0.0
SanthoshVasabhaktula Jun 16, 2020
77c45c4
Merge pull request #38 from project-sunbird/release-2.10.2
sowmya-dixit Jun 16, 2020
086457a
HE-45 | intervalSlider changes added for Datediff feature
kumarks1122 Jul 2, 2020
0371573
Added redis connection configuration
ishawakankar Jul 3, 2020
117d58c
Test case coverage improvement
ishawakankar Jul 5, 2020
fcd4dc8
Merge pull request #41 from kumarks1122/release-3.1.0
SanthoshVasabhaktula Jul 7, 2020
8d3f988
Removing duplicate code
ishawakankar Jul 7, 2020
8b8ce06
.
ishawakankar Jul 7, 2020
8d2c90e
Merge pull request #42 from ishawakankar/3.1
SanthoshVasabhaktula Jul 8, 2020
87bf5a4
Issue #TG-336 fix: Metrics event structure changes for data products …
sowmya-dixit Jul 22, 2020
c31deb5
Issue #TG-336 fix: Add metrics for failed case
sowmya-dixit Jul 22, 2020
6d1c624
Issue #TG-336 fix: Add metrics for failed case
sowmya-dixit Jul 22, 2020
7f2ae85
Issue #TG-336 fix: Add metricts field in metric json
sowmya-dixit Jul 22, 2020
3e91ffd
Issue #TG-336 fix: Fix metrics field name
sowmya-dixit Jul 22, 2020
a639e35
Issue #TG-336 fix: Revert metrics edata case class changes
sowmya-dixit Jul 22, 2020
63ba6c7
Issue #0000 fix: WFS on cluster - set azure key provider details to sc
sowmya-dixit Jul 23, 2020
83d1aaa
Merge pull request #44 from sowmya-dixit/release-3.2.0-new
RevathiKotla Jul 23, 2020
73ba365
Issue #TG-336 fix: Metrics event structure changes for data products …
sowmya-dixit Jul 24, 2020
37adbd9
Merge pull request #45 from sowmya-dixit/release-3.1.0
anandp504 Jul 24, 2020
9bfa7bd
Merge branch 'release-3.2.0' of https://github.com/project-sunbird/su…
sowmya-dixit Aug 11, 2020
5269c35
Issue #0000 fix: WFS execution by partition fix
sowmya-dixit Aug 11, 2020
23fe6d0
Issue #TG-404- DataExhaust and scruid update changes
RevathiKotla Aug 12, 2020
73be29e
Issue #TG-404- Data Exhuast changes
RevathiKotla Aug 12, 2020
2019138
Issue #TG-404- Data Exhuast fix test changes
RevathiKotla Aug 12, 2020
a41efb6
Merge pull request #48 from project-sunbird/release-3.1.0
RevathiKotla Aug 12, 2020
b35cb4c
Merge branch 'release-3.2.0' of https://github.com/project-sunbird/su…
sowmya-dixit Aug 12, 2020
726b82e
Merge pull request #49 from sowmya-dixit/release-3.2.0
RevathiKotla Aug 17, 2020
c99c583
Issue SC-000: Merge branch 'release-3.2.0' of https://github.com/proj…
RevathiKotla Aug 17, 2020
057a89e
Issue #TG-404 - Improve test coverage
RevathiKotla Aug 17, 2020
004ef17
Issue #TG-404 - Update scruid jar
RevathiKotla Aug 19, 2020
9804d81
Issue #000 jenkins auto build issue fix
manjudr Aug 19, 2020
6756526
Merge pull request #50 from manjudr/auto-build-fix
sowmya-dixit Aug 19, 2020
3c3cedb
Issue #TG-404 - Fix the resoruces shutdown issue
RevathiKotla Aug 20, 2020
56ab6d6
Issue #TG-404 - Fix the testcases
RevathiKotla Aug 20, 2020
cf988f2
Merge pull request #47 from RevathiKotla/release-3.2.0
anandp504 Aug 24, 2020
25276a8
Issue #TG-404 - Fix the file merge issue in spark insight cluster
RevathiKotla Aug 26, 2020
577a8e3
Merge pull request #51 from RevathiKotla/release-3.2.0
sowmya-dixit Aug 26, 2020
c6aff3d
Issue #SC:000- On Demand Template
RevathiKotla Sep 7, 2020
1bf0d29
Issue #SC:000- On Demand Exhaust Changes
RevathiKotla Sep 8, 2020
8facd07
Issue #SC:000- On Demand Exhaust Changes
RevathiKotla Sep 9, 2020
63c6fd1
Merge pull request #52 from RevathiKotla/release-3.3.0
SanthoshVasabhaktula Sep 10, 2020
a3d3bf3
Issue #TG-543 feat: Security enhancements for data exhaust APIs - Res…
sowmya-dixit Sep 14, 2020
1f32606
Issue #TG-543 feat: RestUtil test cases
sowmya-dixit Sep 14, 2020
687a5c0
Merge pull request #53 from sowmya-dixit/release-3.3.0
RevathiKotla Sep 14, 2020
5d9d353
Issue #000 feat: Add copy file method
SanthoshVasabhaktula Sep 21, 2020
80f8b2e
Merge pull request #54 from SanthoshVasabhaktula/release-3.3.0
SanthoshVasabhaktula Sep 21, 2020
953d195
Issue #000 feat: Fix framework issues
SanthoshVasabhaktula Sep 23, 2020
40a7899
Merge pull request #55 from SanthoshVasabhaktula/release-3.3.0
SanthoshVasabhaktula Sep 23, 2020
fd6692a
Issue SC-1949 fix: scruid auto build issue fix
manjudr Sep 25, 2020
29f6a3f
Issue SC-1949 fix: scruid auto build issue fix
manjudr Sep 25, 2020
0bbca24
Issue SC-1949 fix: scruid auto build issue fix
manjudr Sep 25, 2020
af10c6d
Merge pull request #56 from manjudr/scruid-fix
SanthoshVasabhaktula Sep 25, 2020
36ab241
Issue #TG-543 feat: Framework fix for getting azure keys
sowmya-dixit Sep 28, 2020
ebd55e0
Merge pull request #57 from sowmya-dixit/release-3.3.0
anandp504 Sep 28, 2020
91abe13
Issue #TG-543 feat: Revert Framework fix for getting azure keys
sowmya-dixit Sep 28, 2020
c5d3e50
Merge pull request #58 from sowmya-dixit/release-3.3.0
RevathiKotla Sep 28, 2020
c9ae23e
Issue #TG-543 feat: Framework changes to fix wfs failure
sowmya-dixit Sep 30, 2020
92941fd
Issue #TG-543 feat: Debug statements
sowmya-dixit Sep 30, 2020
89b4c9d
Issue #TG-543 feat: Debug statements
sowmya-dixit Sep 30, 2020
c4a4f4b
Issue #TG-543 feat: Revert Debug statements
sowmya-dixit Sep 30, 2020
c46bc83
Issue #TG-543 feat: Test case changes
sowmya-dixit Sep 30, 2020
80fe469
Merge pull request #59 from sowmya-dixit/release-3.3.0
SanthoshVasabhaktula Sep 30, 2020
d0519b8
Issue #TG:620- Fix the druid timeout issue
RevathiKotla Oct 9, 2020
5123892
Issue #TG:620- Fix the test cases
RevathiKotla Oct 9, 2020
52e0c41
Issue #TG:620- Fix the test cases
RevathiKotla Oct 9, 2020
e3f5765
Issue #TG:620- Fix the test cases
RevathiKotla Oct 12, 2020
7c04a88
Issue #TG:620- Fix the test cases
RevathiKotla Oct 12, 2020
0d2b600
Issue #TG:620- Review Fixes
RevathiKotla Oct 12, 2020
61761bc
Merge pull request #60 from RevathiKotla/release-3.3.5
SanthoshVasabhaktula Oct 12, 2020
6f18ce2
Issue #TG:620- Fix druid count issue
RevathiKotla Oct 12, 2020
60a25e5
Merge pull request #61 from RevathiKotla/release-3.3.5
sowmya-dixit Oct 12, 2020
ea3e199
Issue #TG:620- Fix the actor issue
RevathiKotla Oct 13, 2020
336644d
Issue #TG:620- Fix the actor issue
RevathiKotla Oct 13, 2020
a512d07
Issue #TG:620- Fix the actor issue
RevathiKotla Oct 13, 2020
4570d0e
Merge pull request #62 from RevathiKotla/release-3.3.5
sowmya-dixit Oct 13, 2020
25386b1
Issue #SC:000- Fix exhaust date issue
RevathiKotla Oct 27, 2020
ec38e26
Merge pull request #64 from RevathiKotla/release-3.3.5
sowmya-dixit Oct 27, 2020
a33c53b
Issue #SC:000- Move content-model-snapshot from raw to rollup cluster
RevathiKotla Oct 27, 2020
d123d33
Merge pull request #65 from RevathiKotla/release-3.3.5
sowmya-dixit Oct 27, 2020
958fba0
Issue #TG-753 feat: Exhaust jobs dry run changes - fix for OOM issue
sowmya-dixit Dec 15, 2020
65583c9
Merge pull request #68 from sowmya-dixit/release-3.5.0
SanthoshVasabhaktula Dec 15, 2020
d769ac0
TG-773: Code changes for latest_index granularity option
RevathiKotla Dec 21, 2020
9b64b0f
TG-773: Code changes for latest_index granularity option
RevathiKotla Dec 21, 2020
86340cb
TG-773: Code changes for latest_index granularity option
RevathiKotla Dec 21, 2020
9c4f60e
Merge pull request #69 from RevathiKotla/release-3.6.0
SanthoshVasabhaktula Dec 21, 2020
799fe15
Update application.conf to remove config
SanthoshVasabhaktula Dec 22, 2020
ba8a77c
Issue #TG-748 feat: Redis multiprocess changes - fix for report jobs
sowmya-dixit Dec 22, 2020
1d72c89
Merge pull request #70 from sowmya-dixit/release-3.5.0
SanthoshVasabhaktula Dec 22, 2020
6d9d76d
TG-773: Fix review issue
RevathiKotla Dec 24, 2020
4fb5cb4
SC-000: Merge update
RevathiKotla Dec 24, 2020
423ed8c
Merge pull request #71 from project-sunbird/release-3.5.0
RevathiKotla Dec 29, 2020
2e86de0
Issue #000 chore: Enable direct joins in Cassandra
anandp504 Jan 18, 2021
6b0018b
Merge pull request #73 from anandp504/enable_direct_join
SanthoshVasabhaktula Jan 18, 2021
b17e0e7
Merge pull request #74 from project-sunbird/release-3.5.0
RevathiKotla Jan 20, 2021
bc31396
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 25, 2021
71fa9d4
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 25, 2021
841b49b
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 27, 2021
ee2365f
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 27, 2021
bf5e8f0
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 27, 2021
2243661
Merge pull request #75 from sowmya-dixit/release-3.6.0
anandp504 Jan 28, 2021
b2f08e2
Merge pull request #77 from project-sunbird/release-3.6.0
RevathiKotla Jan 29, 2021
e1bb46d
Issue TG-809: Fix the circleci java build issue
RevathiKotla Jan 28, 2021
e60c3c8
Issue TG-809: Fix the circleci java build issue
RevathiKotla Jan 29, 2021
2c22826
Issue TG-809: Fix the circleci java build issue- indentation fix
RevathiKotla Jan 29, 2021
2dee209
Issue TG-809: Fix the circleci java build issue- maven targe
RevathiKotla Jan 29, 2021
3e4f825
Issue TG-809: Fix the circleci java build issue- maven targe
RevathiKotla Jan 29, 2021
c3c0c43
Issue TG-809: Fix the circleci java build issue- maven plugin
RevathiKotla Jan 29, 2021
0e84b32
Issue TG-809: Fix the circleci java build issue- maven plugin
RevathiKotla Jan 29, 2021
a865b91
Issue TG-809: Fix the circleci java build issue- maven plugin
RevathiKotla Jan 29, 2021
9c5557e
Issue TG-809: Fix the circleci java build issue- maven plugin
RevathiKotla Jan 29, 2021
8c07c0e
Issue TG-809: Fix the circleci java build issue- maven plugin
RevathiKotla Jan 29, 2021
6b031a2
Issue TG-809: Fix the circleci java build issue- maven plugin
RevathiKotla Jan 29, 2021
ca800bf
Issue TG-809: Fix the circleci java build issue- java home
RevathiKotla Jan 29, 2021
8f4cfb4
Issue TG-809: Fix the circleci java build issue- java home
RevathiKotla Jan 29, 2021
290cc97
Issue TG-809: Fix the circleci java build issue- remove echo statement
RevathiKotla Jan 29, 2021
143cd50
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 25, 2021
7ec2bea
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 25, 2021
e94a779
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 27, 2021
c6bef2c
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 27, 2021
00c4003
Issue #TG-824 feat: Changes to push job log events to kafka when exec…
sowmya-dixit Jan 27, 2021
286af54
Issue SC-000: Fix the latest index issue
RevathiKotla Feb 3, 2021
b0d59fe
Issue SC-000:Merge branch 'release-3.6.0' of https://github.com/proje…
RevathiKotla Feb 3, 2021
3eab0bc
Issue SC-000:Merge branch 'release-3.6.0' of github.com:RevathiKotla/…
RevathiKotla Feb 3, 2021
d1a385c
Merge pull request #78 from RevathiKotla/release-3.6.0
sowmya-dixit Feb 3, 2021
725723b
Merge pull request #82 from project-sunbird/release-3.6.0
sowmya-dixit Mar 31, 2021
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
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
version: 2.1
jobs:
analytics-core-build:
machine: true
machine:
image: ubuntu-2004:202008-01
steps:
- checkout
- restore_cache:
key: dp-dependency-cache-{{ checksum "pom.xml" }}
- run:
name: sunbird-analytics-core-build
command: mvn scoverage:report
command: |
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
echo $(java -version)
mvn scoverage:report
- save_cache:
key: dp-dependency-cache-{{ checksum "pom.xml" }}
paths: ~/.m2
Expand All @@ -20,10 +25,11 @@ jobs:
- run:
name: sonar
command: |
export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64
mvn -X sonar:sonar -Dsonar.projectKey=project-sunbird_sunbird-analytics-core -Dsonar.organization=project-sunbird -Dsonar.exclusions=analytics-core/src/main/scala/org/ekstep/analytics/streaming/** -Dsonar.host.url=https://sonarcloud.io -Dsonar.scala.coverage.reportPaths=/home/circleci/project/target/scoverage.xml

workflows:
version: 2.1
workflow:
jobs:
- analytics-core-build
- analytics-core-build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ output-*
dependency-reduced-pom.xml
**/target
**/logs
**/.idea/**
*.iml
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ node('build-slave') {
}
stage('Archive artifacts'){
sh """
mkdir lpa_artifacts
mkdir lpa_core_artifacts
cp analytics-job-driver/target/analytics-framework-2.0.jar lpa_core_artifacts
cp analytics-core/lib/scruid*.jar lpa_core_artifacts
zip -j lpa_core_artifacts.zip:${artifact_version} lpa_core_artifacts/*
"""
archiveArtifacts artifacts: "lpa_core_artifacts.zip:${artifact_version}", fingerprint: true, onlyIfSuccessful: true
Expand Down
Binary file added analytics-core/lib/scruid_2.11-2.4.0.jar
Binary file not shown.
76 changes: 73 additions & 3 deletions analytics-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
<scope>provided</scope>
<version>4.5.6</version>
</dependency>
<dependency>
<groupId>com.typesafe</groupId>
Expand Down Expand Up @@ -248,12 +247,75 @@
<artifactId>commons-text</artifactId>
<version>1.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.typesafe.scala-logging/scala-logging -->
<dependency>
<groupId>com.typesafe.scala-logging</groupId>
<artifactId>scala-logging_2.11</artifactId>
<version>3.6.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/ing.wbaa.druid/scruid -->
<dependency>
<groupId>ing.wbaa.druid</groupId>
<artifactId>scruid_${scala.maj.version}</artifactId>
<version>2.3.0</version>
<version>2.4.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/scruid_2.11-2.4.0.jar</systemPath>
</dependency>
<!-- Scruid dependency starts -->
<!-- https://mvnrepository.com/artifact/io.circe/circe-core -->
<dependency>
<groupId>io.circe</groupId>
<artifactId>circe-core_2.11</artifactId>
<version>0.11.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.circe/circe-parser -->
<dependency>
<groupId>io.circe</groupId>
<artifactId>circe-parser_2.11</artifactId>
<version>0.11.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.circe/circe-generic -->
<dependency>
<groupId>io.circe</groupId>
<artifactId>circe-generic_2.11</artifactId>
<version>0.11.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mdedetrich/akka-stream-json -->
<dependency>
<groupId>org.mdedetrich</groupId>
<artifactId>akka-stream-json_2.11</artifactId>
<version>0.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mdedetrich/akka-http-json -->
<dependency>
<groupId>org.mdedetrich</groupId>
<artifactId>akka-http-json_2.11</artifactId>
<version>0.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mdedetrich/akka-stream-circe -->
<dependency>
<groupId>org.mdedetrich</groupId>
<artifactId>akka-stream-circe_2.11</artifactId>
<version>0.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mdedetrich/akka-http-circe -->
<dependency>
<groupId>org.mdedetrich</groupId>
<artifactId>akka-http-circe_2.11</artifactId>
<version>0.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.typesafe.akka/akka-http -->
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-http_2.11</artifactId>
<version>10.1.9</version>
</dependency>
<dependency>
<groupId>io.circe</groupId>
<artifactId>circe-java8_2.11</artifactId>
<version>0.11.1</version>
</dependency>
<!-- Scruid dependency ends -->
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop</artifactId>
Expand All @@ -272,6 +334,12 @@
<artifactId>postgresql</artifactId>
<version>9.1-901.jdbc4</version>
</dependency>
<dependency>
<groupId>io.zonky.test</groupId>
<artifactId>embedded-postgres</artifactId>
<version>1.2.6</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -290,6 +358,8 @@
<goal>testCompile</goal>
</goals>
<configuration>
<source>8</source>
<target>8</target>
<args>
<arg>-dependencyfile</arg>
<arg>${project.build.directory}/.scala_dependencies</arg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import org.apache.spark.streaming.dstream.DStream
import org.ekstep.analytics.framework.Level.INFO
import org.ekstep.analytics.framework.exception.DataFetcherException
import org.ekstep.analytics.framework.fetcher.{AzureDataFetcher, DruidDataFetcher, S3DataFetcher}
import org.ekstep.analytics.framework.util.{JSONUtils, JobLogger}
import org.ekstep.analytics.framework.util.{CommonUtil, JSONUtils, JobLogger}

/**
* @author Santhosh
*/
* @author Santhosh
*/
object DataFetcher {

implicit val className = "org.ekstep.analytics.framework.DataFetcher"
Expand All @@ -33,37 +33,59 @@ object DataFetcher {
AzureDataFetcher.getObjectKeys(search.queries.get);
case "local" =>
JobLogger.log("Fetching the batch data from Local file")
search.queries.get.map { x => x.file.getOrElse("") }.filterNot { x => x == null };
search.queries.get.map { x => x.file.getOrElse(null) }.filterNot { x => x == null };
case "druid" =>
JobLogger.log("Fetching the batch data from Druid")
val data = DruidDataFetcher.getDruidData(search.druidQuery.get)
// $COVERAGE-OFF$
// Disabling scoverage as the below code cannot be covered as DruidDataFetcher is not mockable being an object and embedded druid is not available yet
val druidDataList = data.map(f => JSONUtils.deserialize[T](f))
return sc.parallelize(druidDataList);
return druidDataList
// $COVERAGE-ON$
case _ =>
throw new DataFetcherException("Unknown fetcher type found");
}

if (null == keys || keys.length == 0) {
return sc.parallelize(Seq[T](), JobContext.parallelization);
}
JobLogger.log("Deserializing Input Data", None, INFO);
val filteredKeys = search.queries.get.map{q =>
getFilteredKeys(q, keys, q.partitions)
}.flatMap(f => f)

val isString = mf.runtimeClass.getName.equals("java.lang.String");
sc.textFile(keys.mkString(","), JobContext.parallelization).map { line => {
val inputEventsCount = fc.inputEventsCount;
sc.textFile(filteredKeys.mkString(","), JobContext.parallelization).map { line => {
try {
inputEventsCount.add(1);
if (isString) line.asInstanceOf[T] else JSONUtils.deserialize[T](line);
} catch {
case ex: Exception =>
JobLogger.log(ex.getMessage, None, INFO);
null.asInstanceOf[T]
}
}
}
}.filter { x => x != null };
}

/**
* API to fetch the streaming data given an array of query objects
*/
* API to fetch the streaming data given an array of query objects
*/
def fetchStreamData[T](sc: StreamingContext, search: Fetcher)(implicit mf: Manifest[T]): DStream[T] = {
null;
}

def getFilteredKeys(query: Query, keys: Array[String], partitions: Option[List[Int]]): Array[String] = {
if (partitions.nonEmpty) {
val finalKeys = keys.map{f =>
partitions.get.map{p =>
val reg = raw"(\d{4})-(\d{2})-(\d{2})-$p-".r.findFirstIn(f)
if(reg.nonEmpty && f.contains(reg.get)) f else ""
}
}.flatMap(f => f)
finalKeys.filter(f => f.nonEmpty)
}
else keys
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,6 @@ object DataFilter {
val eventMap = CommonUtil.caseClassToMap(event)
CommonUtil.getTimestamp(eventMap.get("$attimestamp").get.asInstanceOf[String]).asInstanceOf[AnyRef];
}
case "gameId" =>
val gid = getBeanProperty(event, "edata.eks.gid");
if (null == gid)
getBeanProperty(event, "gdata.id");
else
gid;
case "genieTag" =>
val tags = if(event.isInstanceOf[Event]) CommonUtil.getETags(event.asInstanceOf[Event]).app else getBeanProperty(event, "etags").asInstanceOf[ETags].app;
if (tags.isDefined) tags.get else List()
case "gameVersion" => getBeanProperty(event, "gdata.ver");
case "userId" => getBeanProperty(event, "uid");
case "sessionId" => getBeanProperty(event, "sid");
case "telemetryVersion" => getBeanProperty(event, "ver");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
package org.ekstep.analytics.framework

import ing.wbaa.druid.DruidConfig
import ing.wbaa.druid.{DruidConfig, QueryHost}
import ing.wbaa.druid.client.DruidClient
import org.apache.spark.sql.{DataFrame, SparkSession}
import org.apache.spark.sql.types.StructType
import org.sunbird.cloud.storage.BaseStorageService
import org.sunbird.cloud.storage.conf.AppConf
import org.sunbird.cloud.storage.factory.{StorageConfig, StorageServiceFactory}
import org.sunbird.cloud.storage.factory.StorageServiceFactory

import scala.collection.mutable.Map
import org.ekstep.analytics.framework.util.HadoopFileUtil
import org.apache.spark.util.LongAccumulator
import org.ekstep.analytics.framework.conf.AppConf
import org.ekstep.analytics.framework.fetcher.{AkkaHttpClient, AkkaHttpUtil, DruidDataFetcher}

class FrameworkContext {

var dc: DruidClient = null;
var drc: DruidClient = null;
var storageContainers: Map[String, BaseStorageService] = Map();
val fileUtil = new HadoopFileUtil();

var inputEventsCount: LongAccumulator = _
var outputEventsCount: LongAccumulator = _

def initialize(storageServices: Option[Array[(String, String, String)]]) {
dc = DruidConfig.DefaultConfig.client;
Expand All @@ -26,15 +36,23 @@ class FrameworkContext {
getStorageService(storageType, storageType, storageType);
}

def getHadoopFileUtil(): HadoopFileUtil = {
return fileUtil;
}

def getStorageService(storageType: String, storageKey: String, storageSecret: String): BaseStorageService = {
if("local".equals(storageType)) {
return null;
}
if (!storageContainers.contains(storageType + "|" + storageKey)) {
storageContainers.put(storageType, StorageServiceFactory.getStorageService(StorageConfig(storageType, AppConf.getStorageKey(storageKey), AppConf.getStorageSecret(storageSecret))));
storageContainers.put(storageType + "|" + storageKey, StorageServiceFactory.getStorageService(org.sunbird.cloud.storage.factory.StorageConfig(storageType, AppConf.getConfig(storageKey), AppConf.getConfig(storageSecret))));
}
storageContainers.get(storageType).get
storageContainers.get(storageType + "|" + storageKey).get
}

def setDruidClient(druidClient: DruidClient) {
def setDruidClient(druidClient: DruidClient, druidRollupClient: DruidClient) {
dc = druidClient;
drc = druidRollupClient;
}

def getDruidClient(): DruidClient = {
Expand All @@ -44,19 +62,49 @@ class FrameworkContext {
return dc;
}

def getDruidRollUpClient(): DruidClient = {
if (null == drc) {
val conf = DruidConfig.DefaultConfig
drc = DruidConfig.apply(
Seq(QueryHost(AppConf.getConfig("druid.rollup.host"), AppConf.getConfig("druid.rollup.port").toInt)),
conf.secure,
conf.url,conf.healthEndpoint,conf.datasource,conf.responseParsingTimeout,conf.clientBackend,
conf.clientConfig,conf.scanQueryLegacyMode,conf.zoneId,conf.system).client
}
return drc;
}

def getAkkaHttpUtil(): AkkaHttpClient = {
AkkaHttpUtil
}

def shutdownDruidClient() = {
if (dc != null) dc.actorSystem.terminate()
}

def shutdownDruidRollUpClien() = {
if (drc != null) drc.actorSystem.terminate()
}

def shutdownStorageService() = {
if (null != storageContainers) {
if (storageContainers.nonEmpty) {
storageContainers.foreach(f => f._2.closeContext());
}
}

def closeContext() = {
shutdownDruidClient();
shutdownDruidRollUpClien();
shutdownStorageService();
}

def loadData(spark: SparkSession, settings: scala.collection.Map[String, String], url: String, schema: StructType): DataFrame = {
if (schema.nonEmpty) {
spark.read.schema(schema).format(url).options(settings).load()
}
else {
spark.read.format(url).options(settings).load()
}
}

}
Loading