Questions tagged [partition]

Use this tag for questions about code that partitions data, memory, virtual machines, databases or disks.

In computing, partition may refer to

  • Disk partitioning, the division of a hard disk drive
  • Partition (database), the division of a database
  • Logical partition (virtual computing platform) (LPAR), a subset of a computer's resources, virtualized as a separate computer
  • Memory partition, a subdivision of a computer's memory, usually for use by a single job
  • Binary space partitioning

source: https://en.wikipedia.org/wiki/Partition

Note that non-programming questions about database partitioning are likely to be better received on Database Administrators and disk partitioning on Server Fault.

1547 questions
-1
votes
1 answer

Reduce Hashmaps per partition in Spark

I have a RDD of some mutable.Map[(Int, Array[Double])] and I would like to reduce the maps by Int and find the means of the elements of the arrays. For example I have: Map[(1, Array[0.1, 0.1]), (2, Array[0.3, 0.2])] Map[(1, Array[0.1,…
mkey
  • 55
  • 8
-1
votes
1 answer

wrong fs type, bad options, bad superblock

I am getting this error: mount: /mnt/dev/sda3: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error. I tried this: sudo apt-get install nfs-common And this: sudo apt-get install cifs-utils But…
-1
votes
1 answer

C++ partition algorithm

My task is: You have N items that weight is s1, s2... sN. Program has to divide items into two groups so that item weight would be as much similar as possible. I found a great explanation how to solve this problem(Author: Abhiraj Smit): // A…
MCTG
  • 65
  • 11
-1
votes
2 answers

Clojure Even List within even counts

Currently I am trying to partition my lists in clojure into even splits of even values. To explain. I have (def a '(1 2 3 4 5 6 7 8 9 10)) What I want to do is give it a partition function and create even lists that are even in count. so if I were…
-1
votes
1 answer

MySQL PHP Pagination - Getting the same results on every page or no results at all

I'm trying to query data from MySQL. I need the data table to be paginated. See the code below; you can see that I use "OFFSET" after the limit. I can also use "," However, I tried both but OFFSET does not bring up any results and "," brings up…
Yousuf
  • 113
  • 1
  • 10
-1
votes
1 answer

How to resize my partition on virtualbox with Debian?

I already created space in the virtualbox so you can see this free 55gb. But when i want to delete partition 2 and partition 5, i get an error message: rror deleting partition /dev/sda5: warning partition dev/sda5 is being used are you sure you want…
Harley
  • 469
  • 1
  • 6
  • 16
-1
votes
1 answer

Mount a partition (linux) in a already existent folder

How can mount a partition in an already existent folder of my linux tree? What happens with the already created file and can I move these to the new disk in the process? I am using a Ubuntu 16.04 with an SSD and HD disk, I would like to mount the…
hildogjr
  • 754
  • 2
  • 6
  • 17
-1
votes
2 answers

SQL Server Partition Order - No tie DenseRank values even if rows are same

This question is best explained with an image and the script I have currently... How can I extract a FULL one row per assignment, with the lowest rank, and if there are 2 rows with a denserank as 1, then choose either of them?... select…
user4242750
  • 187
  • 1
  • 3
  • 13
-1
votes
4 answers

Unable to shrink partition size

I am trying to install Linux in a computer that has Windows 7. The first step was shrinking the disk size but Windows did not allow any reduction. Thus I followed a number of steps to disable "unmovable" files I disabled the Page File I disabled…
-1
votes
1 answer

Spark how to decide how many repartitions to do for any RDD

Spark how to decide how many repartitions to do for any RDD. RDD repartition() takes the number how to come up with the number?
G G
  • 1,049
  • 4
  • 17
  • 26
-1
votes
1 answer

Unable to Shrink ubuntu root partition on vmware

I am Using Ubuntu 14.04 Server as VMware Guest OS. I have allocated 200 GB Disk space of thin provision disk. I only using 100 Gb of Disk space. I need shrink the remaining Disk space. I tried with Gparted but in that not showing free space and…
-1
votes
2 answers

Trying to mount a usb partition in Linux using a cpp program

I want to detect a usb connection and mount its corresponding partition. I tried using udev.I was able to find device in /dev/bus/usb/001 or/002.But from this I cannot find which partition it uses. So using udev I searched for block partitions and…
rjmrohit
  • 11
  • 4
-1
votes
1 answer

gp function cannot execute on segment because it issues a non-SELECT statement

i got errors when i created the partition tables automatically via trigger which is created in advance. enviorment info: GP version :4.3.8.1 error: NOTICE: Found 2 data formatting errors (2 or more input rows). Rejected related input data. ERROR: …
-1
votes
1 answer

Missing personid or fields when using the row_number over partition but able to find them when using a where condition

i have build a query to set the partitions and used the row_number the issue here is i am missing out on certain person_id records but when i use a where condition i am able to fetch the record. `SELECT C.* FROM (SELECT B.PROVIDER_PAU_DK AS…
-1
votes
1 answer

Using Partition and Join in MS SQL Server

I have the following example set of data in SQL: I need to select for RequestType = 1 and ToRoleID = 1 the maximum step where there is no record with other ToRoleID. Example: If I filter by RequestType = 1 and ToRoleID = 1, this should give me only…
Radoslav.Ivanov
  • 413
  • 3
  • 16
1 2 3
99
100