[MCOL-4012] Enable ColumnStore to run as a non root user Created: 2020-05-20 Updated: 2021-01-25 Resolved: 2020-09-28 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | installation |
| Affects Version/s: | None |
| Fix Version/s: | 5.4.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Roman | Assignee: | Roman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
MCS itself is perfectly fine running w/o root privileges except a couple of things:
There is a relevant article on installing MCS under non-root user. The upgrade from 1.2/4 to 1.5 must be tested. |
| Comments |
| Comment by Roman [ 2020-09-02 ] |
|
4QA All MCS services now runs under mysql user. Plz run generic tests to confirm that MCS operates. |
| Comment by Daniel Lee (Inactive) [ 2020-09-15 ] |
|
build tested: 1.5.4-1 (drone #631 Verified that ColumnStore processes are running under 'mysql'user, except: root 13570 2.4 0.7 1392128 47264 ? Ssl 13:28 11:05 /opt/cmapi/python/bin/python3 -m cmapi_server Development confirmed that is per design for now. There is a permission issue for cpimport. During cpimport, if new .cdf files need to be created, the files are created under 'root' user. Therefore, queries would fail. LDI using batch insert seems to be fine. MariaDB [mytest]> select count crit.log Sep 15 21:03:11 localhost PrimProc[13143]: 11.365443 |0|0|0| C 28 CAL0000: thr_popper: Error opening file for OID 3321; /var/lib/columnstore/data1/000.dir/000.dir/012.dir/249.dir/000.dir/FILE001.cdf; Operation not permitted
|
| Comment by Daniel Lee (Inactive) [ 2020-09-15 ] |
|
As the title of the ticket suggested, cmapi should be running under a non-root user. If we cannot do that for now, we should change the ticket title. |